Questions tagged [apexactionfunction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
39 views

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

<apex:page controller="c1" showHeader="false" sidebar="false"> <apex:form> <apex:pageBlock> <apex:pageBlockSection title="Login page"> <apex:inputText label="Name" title="...
0
votes
2answers
42 views

how to return from the function with the object I just inserted?

public class AccountHandler { public static **Database.SaveResult** insertNewAccount(String nome) { if(nome != null){ Contact novoregistro = new Contact(FirstName= nome, ...
2
votes
5answers
1k views

Apex InvocableMethod not showing up in Flow

The Apex class is not in a package, has global visibility, is Active, has passing tests with 86% coverage, and the method has the @InvocableMethod tag but it is still not showing up in the picklist ...
0
votes
0answers
75 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. ...
1
vote
2answers
708 views

How to pass javascript variable value in apex controller

When i click on the image it's show javascript alert in alert i got the id and open popup which is fine but after that when i call apex controller method using actionfunction i got string value null ...
1
vote
1answer
177 views

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

I have a requirement to capture list of names using Dynamic boxes on VF page. I am using action function for this, but behavior is getting changed based on attribute "Immediate" of action function. if ...
0
votes
1answer
140 views

ActionFunction Slowness

I was hoping someone could help explain what happens when ActionFunction gets triggered that could cause the slowness that I see here: https://developer.salesforce.com/forums/ForumsMain?id=...
0
votes
3answers
176 views

Variable from apex class not set in javascript

My variable is not set in Javascript although it is set in apex: When I click on save, the method allowSave calls the apex method insertproduct , setting the boolean errorMsg to true if a validation ...
4
votes
1answer
771 views

Check if input field cleared and then call an apex function

I have below auto complete Javascript code which works fine for my input text fields. But when I clear the searched value I am not getting search results as expected. Javascript Code j$(document)....
1
vote
2answers
320 views

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

I am trying to run a soql query based on an input value on a Visualforce Page. However, I don't see that the results are displayed on the page when the input field is changed. VF Page: <apex:...
1
vote
2answers
168 views

Need help with NOT function

Hi I am a beginner at apex coding and salesforce. Here is my code that I would like to use the NOT() function. CASE(Lead_Source__c, "Self Generated", IF(Markup__c >= 0 && ...
0
votes
1answer
130 views

Why actionFunctions are not as fast as RemoteAction [duplicate]

Can anyone tell me why actionFunctions are not as fast as RemoteActions in Vf pages?
1
vote
3answers
2k views

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

I have a page that I use to search Entries in a Journal in our Salesforce Communities visualforce page. The system works just fine, except that I have been asked to make it search upon keyup. This ...
1
vote
1answer
2k views

Calling an Apex action inside a HTML in Visualforce page [duplicate]

I need to call an apex action inside HTML. I had completed my UI design in Visualforce page with the help of HTML, now i need to call my action from controller (Custom). I am not sure how to insert ...
0
votes
0answers
670 views

VisualForce drop down button creation with a Link(action) associated to it

I need to create a drop down button(command) on my Visual Force page. This drop down should have a "Link"(or a lable-Text), when we click on this link it should invoke an action. This design is ...
2
votes
2answers
1k views

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

I am experiencing a strange behavior for the first time... I have a actionFunction in my apex compoenent, which has reRender to some panel id. The panel doesnot reRender at all even though the ...
1
vote
1answer
300 views

Action method is not invoked in Action Method

In my button click, action method is not invoking in action function and directly going to oncomplete method.Below is the code. Controller - function cheValidation(){ callService(); } function ...
0
votes
1answer
84 views

Passing Parameter from JavaScript to controller don't seem to work

I'm trying to send a parameter from Visual force page to controller to delete the row of record on pagetable via javascript using actionFunction. I'm able to get the alert messages from javascript ...
1
vote
1answer
2k views

Actionfunction is not working on onchange event

I am trying to call actionFuction on selectlist onchange event but It is not working (function not going to called) Can anybody tell me what wrong in my code and the best practices follow when using ...
0
votes
2answers
572 views

trouble with actionFunction

I am using a wrapper class to combine an sObject with a checkbox, then iterating over the wrappers in my list. The first column displays the checkbox, then a repeat tag iterates over a list of strings ...
1
vote
1answer
5k views

Do not VisualForce JavaScript onChange and actionSupport work together?

It seems like you can't use VisualForce JavaScript onChange and actionSupport together, because if you use onChange property on inputField then actionSupport onChange wouldn't work. There is here my ...
0
votes
1answer
706 views

Toggle Command Button Value from Ascending to Descending

I have a command link Ascending. If I click on the link, immediately, the value of the button/link should change to Descending. <apex:commandLink action="{!Asc}" value="Ascending" reRender="block"...
3
votes
2answers
5k views

Passing variable into actionFunction and then back to JS function oncomplete

Can I pass a variable into an apex:actionFunction call as follows: deleteThing(thing_id); <apex:actionFunction name="deleteThing" action="{!deleteAttachment}" reRender="none" ...
4
votes
1answer
2k views

jQuery Validation and Action function not working on Chrome

I am using submit handler in jQuery to validate the form before it passed to the Salesforce action function for submission, which in Firefox works perfectly. Yet in Chrome, the submission gets to the ...
11
votes
3answers
5k views

Order of Invocation - Controller Methods (Constructor, Getter, Action Method)

I was browsing through Visual Force Dev cookbook and was trying to understand the sequence of execution of the controller methods ( constructor, getter, action method) while invoking the action ...
1
vote
1answer
2k views

Using actionFunction and onclick to show a portion of the page

I'm trying to use onclick and VF actionFunction to show a portion of a page.pageblocksection is not rendering.showdetail is false on vf page I've set up an onclick like this: <apex:commandLink ...
6
votes
1answer
903 views

input type color and upload file

I'm trying to allow a user to both upload a document and utilize the HTML input type="color". Then click Save and have both saved to the record. The color as a field on the record, the file as an ...