This content has been marked as final.
Show 1 reply
-
1. Re: more than 1 function in cfform tag "onSubmit"
BKBK Nov 20, 2013 7:54 AM (in response to ranger)ColdFusion is simply behaving as it should. You will notice that the script that currently runs upon onSubmit ends in a return-statement. That signals the end of the event-handler.
If you wish to check the e-mail as well, you could run one script that performs both functions. I was thinking of something like the following, just off the cuff
onsubmit="if(!document.getElementById('Agree').checked) {alert('You must agree to the Terms and Conditions'); return false; } else {return checkEmail(this);}">

