I want to run some custom JavaScript validation functions before the submit listener is called, something like this:

<script>
function validateForm(obj){
//checks go here
 return false;
} </script>

<form jwcid="[EMAIL PROTECTED]" onSubmit="return validateForm(this)"
delegate="ognl:beans.errorLog" listener="listener:formSubmit" clientValidationEnabled=true>
</form>

If validateForm returns false I don't want to submit, but the listener method 'formSubmit' always seems to be called regardless, I am sure this is very trivial but I just can't find it.

Thanks in advance,
Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to