How to disable/enable apex:commandButton in Visualforce Page ?

Below sample code helps to disable apex:commandButton and enable after the action.


Sample Code:

<apex:commandButton value="Save" action="{!SaveAction}" onclick="this.disabled=true;this.value='Saving...'" oncomplete="this.disabled=false;this.value='Save';" />


Follow Us

Posted By : Sudeer Kamat Date :

view_module Related

label Labels

Comments 0