You need to sign in to do that
Don't have an account?
Pavan Vadlamudi
Action support and action function call for same event
I have the code in vf page where i need to fire the actionsupport and actionfunction on same field.Here the code i i have written.As per the code only one action is excustion at a time as both are on same event but i need to run these two actions at a time.Can you help me out here please.
<apex:actionRegion >
<apex:pageBlockSection columns="2" >
<apex:inputField value="{!opp.StageName}" id="stageId" label="Status" onchange="hideOppSection()">
<apex:actionSupport action="{!getoppFields}" event="onchange" reRender="pg,theForm" />
<apex:actionFunction action="{!gethideOppSection}" name="hideOppSection" reRender="pg,theForm"/>
</apex:inputField>
</apex:pageBlockSection>
</apex:actionRegion>
<apex:actionRegion >
<apex:pageBlockSection columns="2" >
<apex:inputField value="{!opp.StageName}" id="stageId" label="Status" onchange="hideOppSection()">
<apex:actionSupport action="{!getoppFields}" event="onchange" reRender="pg,theForm" />
<apex:actionFunction action="{!gethideOppSection}" name="hideOppSection" reRender="pg,theForm"/>
</apex:inputField>
</apex:pageBlockSection>
</apex:actionRegion>