5 votes
Accepted

Apex InvocableMethod not showing up in Flow

It's definitely a bug in the new flow designer. It's not because of Sum19 release. I also faced a similar issue recently in Spring 19 scratch org and when switched back to legacy flow builder, I was ...
user avatar
5 votes
Accepted

Need help with NOT function

The last value in the case is the "default value", in other words, for any value not already in the case statement. Therefore, it should look like this: CASE(Lead_Source__c, "Self Generated", ...
user avatar
  • 438k
4 votes
Accepted

Page not re-rendering on change? Method not working?

You used a self closing input. You need to leave it open to nest the actionSupport under it. Incorrect <apex:inputField ... /> <apex:actionSupport ... /> Correct <apex:...
user avatar
  • 143k
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 ...
user avatar
  • 5,734
2 votes

ActionFunction is working only with reRender="" and not with any value inside it

Wild guess (you still need to post more code) but rerender only applies to child elements and not the element itself. For example if you rerender: <apex:outputText id="output" rendered="{!...
user avatar
  • 143k
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() == '') ...
user avatar
1 vote

why it is showing Formula Expression is required on the action attributes

The code exactly as posted (with the duplicate markup removed, the custom object query commented out but with the uncommon single quotes left in) compiles and runs fine in a scratch org of mine. If ...
user avatar
  • 130k
1 vote

Apex InvocableMethod not showing up in Flow

For anyone still experiencing this issue try updating your class metadata apiVersion to 48. I had the same problem and tried everything else. When I updated the apiVersion, it works immediately. ...
user avatar
  • 11
1 vote

Page not re-rendering on change? Method not working?

You need to include actionsupport inside your inputfield <apex:inputField value="{!Loan_Memo__c.Relationship__c}" > <apex:actionSupport event="onchange" action="{!getrelatedcovs}" ...
user avatar
1 vote
Accepted

How to pass javascript variable value in apex controller

I think, you are missing rerender attribute for actionFunction and because of this, value is not getting passed. <apex:actionFunction name="embFile" action="{!embFile}" rerender="frm"> <...
user avatar
1 vote
Accepted

how to bind list of dynamic boxes from VF page to controller, values are not binding when using action function with Immediate=true property

If you use an action region - you can not need to process these validations that are required when adding a new row here like so: <apex:page standardController="Account" extensions="...
user avatar
  • 2,038
1 vote
Accepted

ActionFunction Slowness

This time is spent serializing/deserializing the view state. This involves a loop to the server and back when the form is submitted. When you remove the class, Visualforce knows there cannot be a ...
user avatar
1 vote
Accepted

Why can't I get focus to stay on input field using javascript or apex:actionFunction

The issue here is that when using an Apex inputfield in your page, the actual ID of the element in the DOM will be different than the one you specifically state. Because of this, you cant use your ...
user avatar
  • 2,073
1 vote
Accepted

Calling an Apex action inside a HTML in Visualforce page

You can do this thru Javascript HTML -> call Javascript -> call Apex Reference : JavaScript Remoting and Static HTML Add JavaScript functions to the page as handlers to respond to user ...
user avatar
1 vote

Action method is not invoked in Action Method

I believe the form is being submitted. Try updating your button to be <button type="button"> instead of an apex:commandbutton. Alternatively return false from your JS or use e.preventdefault() ...
user avatar
  • 4,936
1 vote

Actionfunction is not working on onchange event

actionFunction is not working because you are not using "rerender" attribute in actionFunction. There is a bug in VF pages related to actionFuntion that it will work only if you use rerender attribute....
user avatar
1 vote

trouble with actionFunction

If this example is to be trusted, then perhaps the only problem is this line: <apex:column value="{!CWrap.CL[f]}" onclick="sortCLTable(f)"/> If you use your browser's "Inspect Element" you ...
user avatar
  • 130k
1 vote
Accepted

Do not VisualForce JavaScript onChange and actionSupport work together?

Finally I came up with the following solution. I use actionFunction instead of actionSupport and call it from JavaScript onChange handler. <apex:page controller="requiredCont"> <script src="...
user avatar
  • 13.4k
1 vote

Toggle Command Button Value from Ascending to Descending

Add Boolean properties to your controller called e.g. showAscending and showDescending (that are set appropriately when the controller is constructed and by the Asc and Desc methods) and then use ...
user avatar
  • 130k

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