function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nitin SehgalNitin Sehgal 

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

Best Answer chosen by Admin (Salesforce Developers)