Skip to main content
9 votes
Accepted

Visualforce: Dynamically ReRender a row within <apex:repeat> by passing $Component through controller

Through attempting this same problem on another project I was able to get a fresh look at the issue. What I learned through countless testing is that rerender attribute can be very tricky. For example:...
Xtremefaith's user avatar
  • 4,570
7 votes
Accepted

apex:actionFunction not passing the parameters

Action function is required to have rerender attribute set so that it posts payload back to server. So something like this should work. <apex:actionFunction name="Sign_Up" action="{!SignUp}" ...
Ranga's user avatar
  • 1,722
6 votes

visualforce page ActionFunction reRender not Working

You can absolutely rerender the <use>and <svg> tag by: The xmlns= on the div containing the SVG is a MUST as if you try to rerender without it the page will simply stall. Important trick ...
Eric's user avatar
  • 54.2k
6 votes
Accepted

How to disable a apex command button

You should set the btnDisabled class name, as well as setting "disabled". Here's a live example for you to use: <apex:page standardStylesheets="true" lightningStylesheets="false" showHeader="true" ...
sfdcfox's user avatar
  • 497k
5 votes
Accepted

apex:input with oncomplete

You need to actually invoke the function for onchange attributes by using parentheses (()). No Good <apex:input onchange="someMethod" ... /> Good <apex:input onchange="someMethod();" ... /...
Adrian Larson's user avatar
  • 151k
5 votes
Accepted

ActionFunction not working properly.Values not getting passed to controller

add rerender attribute in your actionFunction, like this rerender='none'. It is a known issue in Salesforce that if you are not using rerender, then your actionFunction may not work properly.
Ashish Sharma's user avatar
5 votes
Accepted

Action Function Param Not Passing to Controller

Salesforce has built the framework for apex:actionFunction like that way that it expects rerender attribute to pass value to the controller and the ID of one or more components that are redrawn when ...
Santanu Boral's user avatar
4 votes

action callback from apex controller a.getReturnValue() is empty

You need to mark the properties of the inner class as @AuraEnabled for them to be returned. This is likely why you are seeing a null return value (there is no visible data to return). Note that you ...
dsharrison's user avatar
  • 3,992
4 votes

Why actionFunctions are not as fast as RemoteAction

In the thread @sfdcfox have provided several good points.Posting some of them which are related to your answer: @RemoteAction methods require less bandwidth, and server processing time, because only ...
Mr.Frodo's user avatar
  • 5,812
4 votes
Accepted

Apex:param not sending parameter in actionFunction

I have had mixed luck doing it like that (probably my own fault). However I know this works (string values): public string paramValue {get;set;} public pagereference AttachFile(){ system....
Eric's user avatar
  • 54.2k
4 votes
Accepted

apex:actionsupport event not firing

You have to nest the <apex:actionSupport> tag within the tag whose action you are trying to support. You have it inverted. Correct <a ...> <apex:actionSupport ... /> </a> ...
Adrian Larson's user avatar
  • 151k
4 votes
Accepted

Call 2 methods on page load

You're missing rerender in your apex:actionFunction, without which whole page would reload. Your JavaScript code looks fine. Have a dummy apex:OutputPanel for rerendering. I suspect your second ...
Raul's user avatar
  • 18.8k
4 votes
Accepted

Using Param in ActionFunction - Unexpected Token ':'

You need to specify a name attribute, or you would get unexpected behavior. <apex:param name="aValue" value="" assignTo="{!variableFromVfp}"></apex:param>
sfdcfox's user avatar
  • 497k
3 votes
Accepted

Using action and onclick together on command button

If you want to abort the action, return a value. If you do not want to abort the action, do not return a value. Example: <apex:commandButton value="Do Something" onclick="if(!...
sfdcfox's user avatar
  • 497k
3 votes
Accepted

Execute Javascript after ActionFunction completes

When calling Javascript after the action function completes you would use the oncomplete property of the actionfunction: <script> function myJSFunction(){ alert("hi"); } </script> &...
Eric's user avatar
  • 54.2k
3 votes
Accepted

Passing in values from javascript to apex action function

You could adjust your action function like so: <apex:actionFunction name="callsetSource" action="{!setSource}" rerender='none'> <apex:param name='var3' value=''/> <apex:param ...
Antonio Manente's user avatar
3 votes
Accepted

action callback from apex controller a.getReturnValue() is empty

There are two particular bugs 1.The nested or inner classes always fails for me .I always create a separate class and never mix as inner class if i am using the apex for lightning component 2.Make ...
Mohith Shrivastava's user avatar
3 votes

Visualforce Page redirect not working from apex actionfunction

try <apex:commandButton value="Create" onclick="createfunction(); return false;" />
Emma's user avatar
  • 31
3 votes
Accepted

How to pass parameters from a VF page to a controller extension

Main Issue: No rerender on the action function. Removing that produces an attempt to dereference null object. SO I essentially added that to the actionFunction and it all started to work. Issue has ...
Eric's user avatar
  • 54.2k
3 votes
Accepted

Controller variables set to null after being updated in actionFunction

You should call second action function in onComplete of first action function. Then only it can ensure logTransactionDetails() is executed and value assigned to mainOutboundLog variable. Use this code ...
Reshma's user avatar
  • 4,039
3 votes

Call actionFunction from actionSupport onComplete

I think your ultimate goal is to pass selected lookup value to the controller and you have taken a complicated route. Here is the simple way to achieve the functionality leveraging action attribute ...
Santanu Boral's user avatar
3 votes

Action Function Param Not Passing to Controller

Please find below updated controller code which might help you : On Controller: Declare a public variable with name as "passedVariable": public String passedVariable{get;set;} Make sure that you ...
Rohit's user avatar
  • 2,091
3 votes

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

You can use this code & pass action status id into your commanLink status : <apex:actionStatus id="myAjaxStatus" > <apex:facet name="start" > <div style="...
Sahil Malhotra's user avatar
2 votes
Accepted

How to pass js confirm response to an action function

<apex:actionFunction name="doSave" action="{!save}" rerender="none"> <apex:param name="param" assignTo="{!myControllerBoolean}" value=""/> </apex:actionFunction> <apex:...
Tushar Sharma's user avatar
2 votes
Accepted

Uncaught ReferenceError: callAF is not defined

Give your apex:param name attribute. So it will work. <apex:actionFunction name="callAF" action="{!checkActive}" reRender="pbt"> <apex:param name="apparam" id="accId" value="" assignTo="{!...
Tushar Sharma's user avatar
2 votes
Accepted

field update using workflow and formula function

To be clear, you want to move part of your Description field to another text field? Here are a couple of formulae for you: LEFT(Description, FIND("First Name",Description)-1) RIGHT(Description, LEN(...
Matthew Miller's user avatar
2 votes
Accepted

Check if input field cleared and then call an apex function

You can write different handle for this situation. You can do something like j$(document).ready(function(){ j$(".apexaccountautocomplete").focusout(function() { if (j$(this).val() == '') ...
Tushar Sharma's user avatar
2 votes
Accepted

SSJS extension function call to append variable

Here's how I've accomplished something similar in SSJS. The idea is that you build the Select HTML in a SSJS block and output it in the body of the page. <script runat="server"> Platform....
Adam Spriggs's user avatar
  • 30.8k
2 votes
Accepted

Conditionally make a text box appear on selection of a Radio Button

It certainly does work. You haven't shared your code, but this is simple enough that a demonstration should illuminate what went wrong: <apex:page controller="dynSelect"> <apex:form id="...
sfdcfox's user avatar
  • 497k
2 votes
Accepted

How to check which anchor <a> link has been clicked vf page

In your <a> tag change the onclick to: onclick="controllerAction('YOURVALUE')" No need for the additional JS function callAction as the actionFunction creates a JS function with the ...
Eric's user avatar
  • 54.2k

Only top scored, non community-wiki answers of a minimum length are eligible