Client Side Validation Question
Hi,
I'm using the WA client side validation, and I'd like to add one of my hand written validation checks before the form is submitted.
I've added my code to the end of the "onsubmit" script, at the very end of the WA script like so:
onsubmit="WAValidateRQ(document.form1.fname,'- First name is required',document.form1.fname,1,true,'text');WAValidateRQ(document.form1.lname,'- Last name is required',document.form1.lname,1,true,'text');WAValidateRQ(document.form1.phone1,'- Phone is required',document.form1.phone1,1,true,'text');WAValidateNM(document.getElementById('form1').phone1,'- Invalid phone number',1,9999999999999,0,'','',',.',document.getElementById('form1').phone1,1,true);WAValidateRQ(document.form1.email,'- Email is required',document.form1.email,1,true,'text');WAValidateEM(document.getElementById('form1').email,document.getElementById('form1').email.value,'- Invalid email address',document.getElementById('form1').email,1,true);WAAlertErrors('The following errors were found\n','\nCorrect invalid entries to continue',true,document.getElementById('false'),false);return document.MM_returnValue;return mycheck();"
See that last thing "return mycheck();" ?
It seems to ignore that completely....what am I doing wrong?
Thanks for any help!