You need to sign in to do that
Don't have an account?

How can I mimic Salesforce command button actions?
If I go into Salesforce Accounts, and click Save, the command buttons instantly go grey giving the user great feedback that the button has been pressed.
How can I mimic this Salesforce functionality using the Apex:CommandButton? I tried changing the button via controller, but anything I do here suffers from client to server latency. thanks!
You can do this via javascript - create a method that locates the buttons you are interested in and sets them to disabled. Then add onclick handlers to each button that invokes the javascript.
If you are allowing the users to quicksave (i.e. save and stay on the same page) then an actionstatus with onstart/onstop handlers can be used to disable the buttons when the request is posted, and then enable them again when it is complete.
All Answers
You can do this via javascript - create a method that locates the buttons you are interested in and sets them to disabled. Then add onclick handlers to each button that invokes the javascript.
If you are allowing the users to quicksave (i.e. save and stay on the same page) then an actionstatus with onstart/onstop handlers can be used to disable the buttons when the request is posted, and then enable them again when it is complete.
thanks!