You need to sign in to do that
Don't have an account?
calling a javascript together with actionstatus
Hello Everyone,
I am using actionstatus with command button to stop the user for clicking the button twice and also calling a javascript to validate the form fields. Below is the code for that:
<apex:actionStatus id="saveStatus">
<apex:facet name="stop">
<apex:commandButton action="{!save}" value="Save" status="saveStatus" onclick="return fillFieldsSelected();"/>
</apex:facet>
<apex:facet name="start">
<apex:commandButton value="Saving..." disabled="true" status="saveStatus"/>
</apex:facet>
</apex:actionStatus>
but this doesn't seems to be working. Can any body suggest me what to do?
Thanks in Advanced,
Nitin
Hello Nitin,
Please refer following links, providing code snippetes for this requirement:
http://boards.developerforce.com/t5/Visualforce-Development/Hide-or-Disable-a-Button-After-Click/td-p/115315/page/2
http://salesforce.stackexchange.com/questions/7729/disable-commandbutton-after-first-click-to-prevent-double-submission