Questions tagged [actionfunction]

A component that provides support for invoking controller action methods directly from JavaScript code using an AJAX request. An <apex:actionFunction> component must be a child of an <apex:form> component.

Filter by
Sorted by
Tagged with
-2
votes
0answers
20 views

Action Function is calling intermittently

This is command button onclicking it calls- **<apex:commandButton value="Add Recipients" onclick="add(); return false;" reRender="outpnlList,outpnl3" id="showButton" styleClass="btn slds-button ...
0
votes
1answer
34 views

Hot to Add spinner to SLDS VF page when button is clicked

I must be missing something here because the spinner does not show up, but not sure where the problem is. What am I missing? <li class="slds-button-group-item"> <apex:commandButton ...
0
votes
0answers
19 views

OnChange input picklist field page message is not showing

I am writing a VF page where my requirement is that I have a input picklist field. When I change the picklist value it is calling to controller method. And when in controller I have written a page ...
0
votes
1answer
32 views

Action Function On Complete Event

I have a VF Page where one link is to generate email of current detail page content. Once the email has been triggered to the user we need to show pop-up msg that the email has been sent. So i have a ...
0
votes
0answers
30 views

Issue with apex:param inside a commandLink

I have a table with products with details and a deleting icon on the side. I having an apex:param tag inside an apex:commandLink tag. This is need to tell the Controller which row should I like to ...
1
vote
1answer
35 views

My Action Function is not Working with java script [closed]

Action Function not working. My apex code and visualforce page here below- public class BBH_Survey { public String Survey_res {get;set;} Public BBH_Survey() { CasId='...
0
votes
0answers
41 views

Javascript on rerendered outputpanel not working in production

I am using an action function to rerender an output panel in my visualforce page after i fetch some data from the controller, and then i manipulate it with some javascript (also inside the same output ...
0
votes
1answer
25 views

calling to the server with actionfunction and settimeout

I have a search input on VF page which every character that printed on the keyboard will show the closest result, using actionFunction. for example : If I printed "uni" all accounts that they names ...
0
votes
1answer
28 views

ActionFunction is loosing letters when making a dynamic search

I have a search input which every character that printed on the keyboard will show the closest result, using actionFunction. for example : If I printed "uni" all accounts that they names include the ...
1
vote
1answer
25 views

How to adress rerender in visualforce page on pageload

I currently use the actionregion to rerender an image based on the input of a picklist field. This works by showing the image if I select the correct value in the picklist field. How do I do an ...
0
votes
0answers
64 views

Dynamic rerendering of output panel

Requirement: A visualpage will have a button, which can be clicked 10 times, each time a new section is created. Each section has a static section and a dynamic section in which Case fields needs to ...
1
vote
1answer
15 views

Action Function nulling out values unless rerender is specified?

I have the following part in my visualforce page: <apex:form> <apex:actionFunction name="interestInShowConfirmed" action="{!interestInShowConfirmed}" /> <apex:actionFunction ...
0
votes
0answers
30 views

rerender does not work when the outputPanel id is made unique

<apex:page id="idPageComponent" standardController='Case' extension='testController'> <apex:form id="idForm"> <apex:actionFunction name="testMethod" action="{!testMethodDetails}" ...
0
votes
0answers
32 views

Action function not rerendering when called from an event

Action function is not rerendering when we call it from an event like this : function updateCasePickList( { populateTest(); } $(document).on("focusout", ".tesThis", function (...
0
votes
1answer
85 views

Selectoption value is not passed to controller

Status picklist values are : New,Pending,Closed. In onchange i am trying to pass selected picklist value . If i select New/Pending/Closed the value is passed to controller .But when i chose the ...
1
vote
1answer
32 views

HTML Editor Action Button

I am looking to create a form within HTML Editor with a submit button. From what I am reading, no functionality is available within HTML Editor. Can anyone confirm that this is correct? UPDATES:...
0
votes
2answers
87 views

Second apex method executing before the first one finishes

I have a vf page displaying several Multi select custom buttons. And I am calling a apex method every time one of the button is clicked from VF page using actionfunction. But if I click 2 buttons in ...
0
votes
1answer
29 views

Page Refreshing and Resetting Visualforce Parameters

Through a series of events, I have a visualforce component that When a apex:outputLink is clicked calls a component controller method Calls some javascript in the component The javascript calls an ...
1
vote
1answer
218 views

JSENCODE incorrect argument type

I have the following issue: var accountScheduler = "{!JSENCODE(Account.Number_Of_Due_Days__c)}"; Upon initializing the accountScheduler variable I receive the following error: Error: Incorrect ...
0
votes
1answer
115 views

ActionFunction call a controller method but “system.debug” messages are not printed

I have a visualforce page with a page component showing a list of object. I need to call a controller method when a user updates an <apex:inputField> in order to print in the log that value. ...
0
votes
1answer
23 views

Actionfunction onComplete works abnormally

Please help about the issue. I have onComplete on actionfunction called by button, and called function is another actionfunction that return PageReference for moving to next page. When I click button ...
0
votes
1answer
350 views

Dynamic Rendering of Div based on Apex Controller Value

I would like to reRender a Div based on some logic. Initially the div will be set as display:none as per the logic (Checking whether the variable is null or not). But after passing value to ...
0
votes
1answer
31 views

Actionfunction doesn't work

I cannot find the reason of this situation. Please help experts. I have several actionfunction and all of them are using for saving value to Controller variables. I this situation, one of them doesn'...
0
votes
1answer
102 views

When immediate=“true” values in list does not persist

What i am simply trying here is to add one blank wrapper object in wrapperList on click of add another button. Issue is when i set immediate=true in commandLink or in actionFunction, code adds one ...
0
votes
0answers
75 views

Unknown method 'continuationCallback? when invoked from ActionFunction

VF Page code: <script> $(document).ready(function() { //showing spinner here callAsyncProcess(); function fireOnComplete(){ //stopping spinner here } }); </...
0
votes
2answers
138 views

generic timeout for apex:actionFunction

What I'm trying to do is to call function from apex controller on mu VF page with timeout. For this purpose I've decided to add next code <apex:actionFunction name="searchAuthProducts" action="{!...
0
votes
0answers
47 views

ActionFunction not getting called from JS method

So I created a custom lookup to provide a search functionality for a contact insert/edit table. The idea is that the user can "load"an existing contact instead of creating a duplicate in the system. ...
0
votes
1answer
47 views

Compare What User Typed in VF inputText with JavaScript

In the code below, I need to be able to use JS to call renderResults(); in my controller, only if a user clears the field where customerToClearSearchText goes on the VF page. If I remove the ...
0
votes
2answers
240 views

apex:actionFunction redirecting to URL with only the visualforce page on it

I am calling the actionFunction from javascript. I tried having return false; after the call as is suggested on a couple other questions I found but nothing works. I tried specifying the reRender prop ...
0
votes
1answer
579 views

Pass parameters by checking some condition to apex controller

I am trying to pass parameters by checking some condition inside the Javascript controller. Here's what i am trying to do:- CreateDiscrepancy: function(component, event, helper) { var ...
1
vote
2answers
395 views

how to get which action function is used?

I have these action functions: <apex:actionFunction name="save" action="{!SaveAccount}" oncomplete="executeSD();" status="sub-status"/> <apex:actionFunction name="executeSD" action="{!...
1
vote
2answers
415 views

Action Function Param Not Passing to Controller

EDIT: I needed to put a ReRender, but why? Trying to pass an action function param to the VFP's custom controller. The value is not passing as passedVariableString returns null on the debug. Where am ...
0
votes
1answer
41 views

Need to retrieve values from database without refreshing the entire page

I have a Visualforce page with picklist and associated fields with it. When the picklist value is no I want the other input field values that we have provided to be saved in the database after ...
-1
votes
2answers
33 views

actionFunction doesn't work when not using all the parameters

I'm using the actionFunction to call a method to create payments from my visualforce page. The thing that changes is the payment type (sometimes its cash sometimes its check and sometimes both). The ...
0
votes
2answers
24 views

How to merge 2 similar apex controller method into 1 for 2 different <apex:actionFunction>

I have 2 different apex:actionFunction, one is for save, the other is for saveAndNew: <apex:form > <apex:actionFunction name="save" action="{!save}" status="sub-status"/> <apex:...
0
votes
1answer
274 views

apex:actionFunction not passing the parameters

I am currently trying to call an Apex controller function from an apex:actionFunction, but I can't seem to get the parameters to be passed to the controller function. ActionFunction <apex:...
0
votes
1answer
226 views

Prevent reloading of Page on oncomplete of actionfunction

I have below code where I want to do an action to apex action function and oncomplete of it want to call a javascript function. Unfortunately instead of calling the action the action function in my ...
0
votes
2answers
41 views

actionFunction & html

Trying to find out how to work with actionFuntion in case of usage html instead of VF. My simple piece of code is listed below. Controller: public class Test { public String variable1 {get; set;}...
1
vote
1answer
754 views

apex:ActionFunction not reRendering or showing status

Not sure what is happening here. I am unable to show the spinner status or reRender the page with updated data. I did see this information about reRendering with conditionals but I am reRendering my ...
2
votes
1answer
389 views

Help with Drag and Drop between multiple lists and Save button function with Controller class

I´ve searched around but havent been able to find anything yet. Ive created a field in the Account object called "nivel" which means level. The idea is that every account record can have 3 possible ...
1
vote
2answers
953 views

save two records in two objects with a single save button with lightning components

I have two objects: question and answer, in one form. the first 3 fields belong to the question object. dynamic form belongs to the response object. I created two actions in the client-side ...
0
votes
0answers
43 views

call actionfunction controller method before command button action method

<apex:page showHeader="false" sidebar="false" controller="PartnerRegController" docType="html-5.0" lightningStylesheets="true"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/...
0
votes
1answer
951 views

How to get value after serverside call javascript lightning component

I do a serverside call to get my accounts which returns my accounts. I want to be able to use the returned accounts as a variable to work with. How do I accomplish this. My returnvalue gives me an ...
0
votes
2answers
447 views

<apex:actionFunction not calling Apex methods

I am trying to call an apex method from my visualforce page using javascript method. <apex:page docType="html-5.0" showHeader="false" expires="" sidebar="false" title="Connection" controller="...
2
votes
2answers
2k views

How to disable a apex command button

In my VF page I want to disable the command button via Javascript(not through controller). <apex:page id="thepage" standardController="Opportunity" extensions="OpportunityExt"> <apex:...
0
votes
1answer
823 views

Call actionFunction from actionSupport onComplete

I'm trying to execute actionFunction inside the onComplete event of actionSupport. The goal is to get the selected Id from a lookup field and pass it to the Controller via the actionFunction, but I ...
0
votes
0answers
374 views

onChange event on apex:inputField fires only after losing focus

I have written a VF page having <apex:inputField> with a onchange method like this: <apex:inputField value="{!opp[field]}" onchange="resetValues()"/> The method resetValues is a ...
0
votes
0answers
113 views

Rerender only if action returns null?

So I have an interesting little problem. I have a action function in my visualforce page: <apex:actionFunction name="handleShowChanged" action="{!handleShowChanged}" reRender="non-upload-area" /&...
0
votes
1answer
26 views

Need a function to avoid repeating numerical sequence

I need a function to avoid repeating numerical sequence. The PO number in my form is a numbered series and I can not have any number duplication (each PO has a unique number that follows a numerical ...
0
votes
3answers
575 views

Delete Row with confirm dialogbox

In JavaScript function all the alert showing and id is getting but for controller method is show's " DML statement found null SObject at position 0" Exception. Controller public class ...