You need to sign in to do that
Don't have an account?
Superdome
Disable the button until the page is fully loaded
While user clicks the button just while the custom page is loading, it will make the mistake.
How to disable the button until the page is fully loaded?
Have tried and searched, it seems to use $(Document).ready with visualforce or <BODY onLoad=...> javascript.
Is it the solution to prevent from the problem ?
How about changing the execution lil bit
All Answers
The attribute of apex:commandButton can't be override.
If just using <input type="button".... then it's ok.
Have anyone tried it successfully ?
Some enhance: not only disabled to be set to false after page loaded. And, className should have reset to "btn" to turn on the button.
But, it still not work.
The button1 is enabled after page loaded, but it still can't work. After click button1, it just reload the same page again, it doesn't move to next page.
The button2 is just ok to move to next page and it proves the action - "p3" is ok.
Here's the code...
How about changing the execution lil bit