Hi,
I'm trying to check the contents of an HTML form using the onSubmit="return Validate();" option within the form statement, where Validate is a JS function. The function seems to be called okay before the Submit button, however whatever the result returned from Validate(), the Submit processing is then actioned, i.e. in the case of a validation error it is ignoring the 'false' return-code coming out of the function.
<form name="ViewDetails" action="NextScreen" method=POST
onSubmit="return Validate();">
<input type="submit" value="Confirm Details">
</form>
Any ideas on getting round this ?
Thanks,
Pinpoint
I'm trying to check the contents of an HTML form using the onSubmit="return Validate();" option within the form statement, where Validate is a JS function. The function seems to be called okay before the Submit button, however whatever the result returned from Validate(), the Submit processing is then actioned, i.e. in the case of a validation error it is ignoring the 'false' return-code coming out of the function.
<form name="ViewDetails" action="NextScreen" method=POST
onSubmit="return Validate();">
<input type="submit" value="Confirm Details">
</form>
Any ideas on getting round this ?
Thanks,
Pinpoint