alter button settings so that inside the URL redirect section the URL target value is set to
javascript:this.disabled=true;doSubmit(‘SUBMIT’)
Note that the value inside doSubmit(”) is the same as the button name.
You can even go one step further and replace the text of the button to something relevant like “Submitting….”. The following code does this
javascript:this.disabled=true;this.value=’Submitting….’;doSubmit(‘SUBMIT’);
The button now looks like this when it has been clicked
Thats it, the button is now coded so that the user can only click it once to submit the page. Any further clicks are ignored.
No comments:
Post a Comment