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

learn more… | top users | synonyms

1
vote
0answers
7 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
27 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
26 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
45 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?
3
votes
2answers
28 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
96 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
17 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
30 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
82 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
109 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 ...
3
votes
2answers
83 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()" /> &...
0
votes
0answers
53 views

actionFunction with oncomplete and status attributes not working with Internet Explorer

I have an actionFunction with oncomplete and status attributes (please see the code below). The oncomplete has javascript that finishes our workflow, and the status starts and stops an ajax overlay ...
0
votes
0answers
21 views

ActionFunction rerender with only standardController: data is not re-queried?

I have a VF page that uses only a standardController (the work is mainly done in Javascript and Ajax Toolkit). After the js uploads some child records to the main record associated with the page, I ...
0
votes
1answer
176 views

oncomplete does NOT work when used with <apex:ActionFunction>

<apex:actionFunction name="submitExpJS" action="{!submitExpenses}" oncomplete="refreshMe();" reRender="messagePanel"/> <script> function refreshMe()...
1
vote
1answer
121 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
46 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:...
8
votes
3answers
144 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
76 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 ...
2
votes
3answers
49 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
70 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="...
1
vote
1answer
23 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 ...
3
votes
2answers
103 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
56 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
0answers
26 views

Can we have ActionFunction wrapped in OutputPanel?

I need your help. Here the goal is to set "xyz" literal in "someOutputPanel" from methodOne action. Apparently, it's not working. My question is that can we have actionfunction within outputpanel as ...
0
votes
4answers
129 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
79 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
35 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
123 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
31 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
0answers
91 views

Internal Server Error calling visualforce page actionFunction from child component

I have a visualforce page and it has a child component to render part of the page. In my visualforce page I have a picklist that when I change it's value a function from the child component is invoked ...
0
votes
1answer
127 views

apex:actionfunction not rendering the apex:ouputpanel?

I have an apex:actionfunction which rerenders the apex:outputpanel.In that output panel i have input check box. Every time action:fucntion calls this input check must refreshed ,but it's not ...
0
votes
2answers
347 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> ...
0
votes
0answers
93 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
39 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
34 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
76 views

Rerender pageblocktable after record insert

I would like to rerender a pageblocktable after a new record is inserted. Is this functionality available for tables? Any help is appreciated. Rerender works on the output panel with id "hidden", but ...
0
votes
0answers
57 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 ...
0
votes
0answers
19 views

Merge Leads Counter for Leads Record

I have a use case that we want to make Lead Counter when a lead is merged and should have a counter like for e.g 1,2,3 times it has been merged with an existing lead. So please suggest some ideas how ...
1
vote
1answer
38 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
2k 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}...
1
vote
1answer
452 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"/> &...
2
votes
0answers
248 views

How to display alert pop up for inserted record Id and redirect the VF page to another VF page

I have a custom VF page 'HOMEPAGECOMMUNITY'. I would like to Navigate to 'LANDINGCOMMUNITY'. I have a commandButton 'Submit' which is associated with couple of Rerender Id's for PageErrorMessages and ...
3
votes
2answers
97 views

actionFunction behavior differ for inputCheckbox and inputText

Have some inputText fields and I'm doing some calculations with the values of these(inputFields are inside a pageblocktable, having wrapper items). VF : <apex:actionFunction name="calculateTotals"...
2
votes
0answers
36 views

Reload Page for new Page Message

I have below page snippet where after facet execution to "stop" , I need a page reload. Currently it's not happening hence retaining older page message. Can someone please guide me? Page Snippet: &...
1
vote
0answers
34 views

Display related fields based on change to lookup

This is a simplified example of the problem I'm having, using minimum data. I've created 2 objects, branch and leaf. Each leaf has a lookup to branch. I put a button on the leaf list to create a ...
0
votes
1answer
141 views

apex:inputField breaking onchange binding?

I have an <apex:selectList> whose onchange event rerenders an <apex:outputPanel> through an <apex:actionSupport>. While I was busy celebrating the magic of Visualforce, I noticed ...
0
votes
1answer
50 views

How to write testmethod for geopointe.actionHandler

I have a few classes written that implements Geopointe's action handler, but I don't know how to go about writing a test class for them. All I can find are test classes written for the schedulable ...
0
votes
1answer
58 views

URL Parameters not showing up on browser URL with Action function

I have an action function that fires on a select list change: <apex:selectList label="Select View" id="viewFilter" value="{!viewFilter}" size="1"> <apex:actionSupport event="onchange" ...
3
votes
1answer
914 views

apex:selectList always passing older value on onchange..?

I am using apex:selectList..I want to get the value on onchange of the selectlist..But for first time when i am debugging the value..Its blank..ID comes when i change it again(Second time)..But its ...
2
votes
1answer
268 views

Visualforce component on page - not rerendering after onclick event

I'm attempting to rerender an apex:outputPanel containing a visualforce component. When I click the panel containing the onclick code to call the controller method to change values and rerender, ...