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
1
vote
1answer
435 views

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

I have this below links in a vf page - <p style="line-height: 1.5em;list-style-position: initial;margin:0;padding:0;"><a onclick="callAction()" target="_blank" href="https://cs1....
1
vote
1answer
666 views

In VF page Action function not passing value to Controller

I've written a vf page and try to send value from <apex:actionFunction> vf page to controller but in controller, i think searchjob() function is not executing. and i'm not getting any debug ...
0
votes
1answer
497 views

VisualForce System.NullPointerException: Attempt to de-reference a null object

Here I am trying to insert a Record. I have 2 input Field on the Form.when I click on the save Button,it just calling a JavaScript function:js(). This javaScript function take form inputField values, ...
1
vote
1answer
5k views

Execute Javascript after ActionFunction completes

I have the following on a Visualforce page: <apex:actionFunction action="{!updateName}" name="updateName"/> <apex:inputField value="{!C.Name}" onChange="processName();"/> <script> ...
2
votes
2answers
2k views

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

I have an apex controller that I'm using to run a SOQL query for some data. Initially, I just had the method return the actual Object, but as I'm making reference to many different parts of data, I've ...
0
votes
1answer
352 views

Page reference on the current record page

I have a silly problem but I'm not able to find a solution. I have a VF page inside a record detail page. Inside the VF page I have a command button. At the end of the function inside the button ...
0
votes
1answer
1k views

Uncaught ReferenceError: callAF is not defined

I am trying to update the checkbox(checked or unchecked) in the database from the UI. I am calling the js function on onclick of checkbox and invoking controllers action but I am getting this error. ...
1
vote
1answer
5k views

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

I'm trying to get a few inputs from the user in a VF page and passing them to the controller for processing and eventually updating the page's current record. I've been looking all around for a ...
3
votes
1answer
391 views

How to pass js confirm response to an action function

I've looked all over for this and haven't found anything, apologies if I missed it somewhere. I am trying to set a variable in the controller to equal the response from the confirm and then proceed ...
1
vote
1answer
1k views

Apex:param not sending parameter in actionFunction

I have an actionfunction called from JavaScript attach_file('remote_input'); I have the actionFunction tag: <apex:form id="content" > <apex:actionfunction name="...
2
votes
1answer
2k views

Passing in values from javascript to apex action function

What I'm trying to do is on column click, I want it to execute a backend function to store the value that was selected. <apex:pageBlockTable rows="5" rendered="{!(foundResults==true)}" value="{!...
1
vote
1answer
618 views

Problem with showing errors with ActionFunction

Disclaimer : This is an homework exercise. Sort of. I'm trying to learn Visualforce + APEX + web design in a very short term, so I'm asking my friends to put up challenging questions for me. VF page ...
1
vote
0answers
244 views

Action function in Firefox doesn't work [duplicate]

My function to clear the results of search, works in Chrome, IE, ME, but, in Firefox doesn't works. My action function: <apex:actionFunction name="callClean" action="{!cleanResults}" reRender="...
1
vote
0answers
118 views

Action Function was not working [closed]

I am calling apex method via action Function but it was not calling in IE. Same code works fine in chrome. function disableButton() { j$ = jQuery.noConflict(); j$('[id$="...
1
vote
1answer
96 views

How to Override Notification Intents in Exact Target, Android SDK version 4.2.0

This example is taken from Journey Builder for Apps SDK Explorer for Android shows a few ways to override notification intents. How to Override Notification Intents? The SDK provides three ways to ...
0
votes
1answer
330 views

Action support Rerender function not working for dependent picklist

Well I am facing a strange issue... I have a vfpage with multiple field dependency. The dependent picklists were rendered appropriately till yesterday but today I find the rerender function is not ...
0
votes
1answer
114 views

Visualforce actionFunction params not being set in Controller

I'm having trouble passing data from my AngularJS controller on my Visualforce page to the Apex Controller. I've created an actionFunction on the VF page: <apex:form> <apex:...
1
vote
0answers
288 views

How to attach file using actionFunction

Could you help me please? I want to implement attaching files to Cases in SalesForce. There is recomanded way which using apex:inputFile element, but I can’t use it, because on page I have to use ...
0
votes
1answer
504 views

javascript for loop which calls a action function not setting data correctlly

In visualforce page, I have a javascript for loop which calls a action function according to elements size VF Page : <apex:form> <apex:actionFunction name="myActionFunction" action="{!...
1
vote
1answer
311 views

field update using workflow and formula function

In standard object Case there is Description field and there is text being inserted i'm looking for specific text/string "First Name" and i would like to move everything from the left of "First Name" ...
0
votes
1answer
159 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?
2
votes
2answers
776 views

apex:inputHidden will not rerender but apex:outputpanel does?

On my page I have an apex:inputhidden with a value linking to the APEX controller. It looks like this: <apex:inputhidden value="{!conferenceId}" id="hiddenConference" /> Then I have an ...
0
votes
3answers
4k views

Pass selected value from html <select> to controller

I have to pass the selected picklist value by user from apex form using <select> and <options> html tag to a standard controllers picklist field. I am unable to get the values from Page ...
0
votes
1answer
518 views

Form Submit Using actionFunction in salesforce

I want to submit my complete list of opportunities using <apex:actionfunction/> but in the code behind I am not getting any updated values, also I want to submit attachment and notes in the list ...
1
vote
1answer
42 views

Weird Behaviour on ActionFunction

today , i noticed a very weird behaviour on actionfunction's on complete action. When i use action function like below function works as expected : MY VF : <!--Attention : rerender attribute did ...
1
vote
1answer
138 views

ActionFunction not rendering to create a Javascript Function

Create a dynamic search custom using the ActionFunction for rendering the JS function to post the values to controller. The search is not working. Here is my code: Controller: public class ...
3
votes
2answers
3k views

<apex:actionFunction> may not be used within an iterable component

I am trying to send the selected Id to the controller class from VF page and getting error inside the action function method : Here I want to pass parameters to the controller Error: may not be ...
2
votes
3answers
3k views

Visualforce Page redirect not working from apex actionfunction

I have used actionfunction to redirect visualforce page to another page but the page is not redirecting into another. VF Page: <apex:commandButton value="Create" onclick="createfunction()" /> &...
4
votes
1answer
5k views

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

I have a typical form with <apex:repeat> for some fields. The <apex:inputText> elements have an onChange attribute that references a script that then calls an <apex:actionFunction>, ...
1
vote
1answer
208 views

<apex:actionFunction> tag does NOT work as expected without reRender attribute

I was trying to find out what was wrong with the actionFunction tag since half a day only to realise that it does not work without the attribute reRender, which is not documented anywhere. <apex:...
10
votes
4answers
2k views

Can apex:param pass null for Integers?

I'm trying to reset an Integer value to null, but it is converted to 0. <apex:actionFunction action="{!doSomething}" name="doSomething" rerender="nothing"> <apex:param name="indexValue" ...
2
votes
1answer
563 views

Actionfunction - rerender - redirect - ssl

I have a problem in a Visualforce page for a site page... The process involve: Html + css + jquery ActionFunction => with rerender, with parameters Redirect from a https tio a http jquery actually ...
3
votes
3answers
9k views

Calling actionFunction from JS

I'm working on a vf page/controller. All of the code at this point is about 800 lines so I wont post it all but I have posted the items that are relevant. Basically, there are 4 forms on the VF page. ...
2
votes
1answer
4k views

Used html button instead of apex command button,controller action not updating new values?why

Used html button instead of apex command button, but only old values are passing to contrller action method why? Its working fine for commandbutton!! <apex:actionFunction name="...
0
votes
1answer
60 views

On Account field value change, need address values to change also

I have a master detail relation with Account(master) and Address_vod__c (child). I am showing Account as apex input field. Now on change of Account field , address values also need to changed. Please ...
4
votes
2answers
459 views

apex:commandButton updated by apex:actionFunction

I am trying to disable my button from being pressed twice. When this happens, a self-registration user is only created once - but multiple 'account' records are created (person accounts) for each ...
0
votes
1answer
2k views

How to call method using onblur

i am trying to call a method using onblur, whether it is even possible or not, in my controller i m having search function that i want to call after when i typed any text inside input box and click ...
0
votes
5answers
8k views

reRender problem: variable changes in controller, but not on the VF page

(I am building upon this question and the helpful answers there: Re-rendering section on picklist value change - picklist value is always null.) Requirement: On a Visualforce page, I have a picklist (...
1
vote
0answers
104 views

PageRef or ActionMethod problem

I'm trying to add functionality to a JQuery mobile app someone else wrote and encountering problems with either the action method or the page reference class when trying to construct another page to ...
0
votes
0answers
107 views

Method being referenced in action function is not being called

Hey I was trying out kendo where I was trying to pass the value of the picklist to my controller. The values of the picklists are being captured but my method in the action function is not being ...
3
votes
1answer
737 views

Visualforce actionFunction not working when used with jQuery

I'm developing a visualforce page and using jQuery in it to identify if the user has scrolled through a div to its bottom (scrolling down is assumed as a confirmation that the user has read all the ...
0
votes
2answers
164 views

Question about Visualforce/Save Action Usage

We use campaigns to build letters that go out annually, and the members of that campaign represent the "main" address and the "CC" contacts. As a result, we have hundreds of campaigns, each with 2-5 ...
0
votes
2answers
3k views

Action Function Javascript Page Rerendering

I'm trying call this: <apex:actionFunction name="doCallout" action="{!callout}" /> From javascript like this: <script> window.onload=function() { doCallout(); } </script> It ...
0
votes
0answers
450 views

Action function rerender not working sometimes

I have a outputpanel in visualforce page which has scripts opens up modal dialog. I call the action function on close of the dialog which rerender the outputpanel to get the value '{!shortListString}' ...
0
votes
0answers
74 views

Method call on commandbutton not called when actionfunction is set an a form field

I have a apex:select which calls a actionfunction and rerenders an output panel. In the same form i also have commandbutton which in turn calls another method. When i have the actionfunction setup ...
2
votes
1answer
41 views

Add a job to the joblist in Visualforce page

I am having a list of jobs in the Visualforce controller. And in the page, I have a button called Add job, which adds another job into the list. What it current did is using an actionFunction for ...
0
votes
0answers
419 views

Use onComplete and page redirection of action function

I have a simple question. Can I use action function to redirect to a new page using controller code and also at the same time use onComplete of the action function so that onComplete gets called ...
1
vote
1answer
68 views

How to shuffle on images using output link and pass value to controller

I have a requirement. I have 4 images (or) icons on my VF page. I have a NEXT and PREV buttons. So it is like, based on a {!level} value These images gets highlighted from step 1 .. step 4 based ...
5
votes
1answer
12k views

OnComplete Javascript to pop up alert and Redirect to a record page

I'm stuck with onclick and oncomplete. looking for a solution on this. I have a controller that simply saves a Case record. I want to display a Message to User that 'Your case is saved with {!caseId}...
2
votes
1answer
3k views

Action function not rerendering

Here is the visual force page: <apex:page controller="MyNotesController" showHeader="false" sidebar="false" > <apex:includeScript value="/support/console/25.0/integration.js"/> &...