M
Martin
I have a form with two submit buttons: <Save> and <Cancel>. When the
user clicks on <Save>, I want to execute a validate function. When he
clicks on <Cancel>, I want the form to submit without validation (I
have server side scripting that handles the two different kinds of
submits).
In the "validate" function I have "return false" in the script (if the
validation fails) but the form submits any way. How can I get this
thing to not submit on a failed validation?
user clicks on <Save>, I want to execute a validate function. When he
clicks on <Cancel>, I want the form to submit without validation (I
have server side scripting that handles the two different kinds of
submits).
In the "validate" function I have "return false" in the script (if the
validation fails) but the form submits any way. How can I get this
thing to not submit on a failed validation?