Fingerprint
Programmer
I've got the fun job of writing a form that uses entirely client-side programming for validation and input saving, as it's going out to use on disk. All the workings are written in javascript, and I know the functions work on their own, but then I get to the end:
and the validation works, but not the save! The form is huge, (there are 61 fields), so I'm reluctant to post it all unless necessary. If I remove the 'return' from before the validateForm, both functions fire, but when I put it back only the validation works.
I made sure there's an
else
return true
at the end of the validation function, but it isn't working!
Any ideas why? Please?
Code:
<td><input type="button" value="Save entry" name="Submitbutton" onClick="return validateForm(form1);save(form1);" style="background-color:#F0F8FF;border-color:#B0E0E6;" title="Save this entry and move on to next employee."></td>
and the validation works, but not the save! The form is huge, (there are 61 fields), so I'm reluctant to post it all unless necessary. If I remove the 'return' from before the validateForm, both functions fire, but when I put it back only the validation works.
I made sure there's an
else
return true
at the end of the validation function, but it isn't working!
Any ideas why? Please?