Menu
I have a Javascript function that I call in my form submit, which validates the form. It looks like this:
<form name=”form” method=”post” action=”process.cfm” onSubmit=”Validate(this);return false”>
It works fine, but I also want to be able to have a Save As Draft button, which would create a record in the db but would not validate the form. Can I selectively call this function only if they click Submit and not Save As Draft? I’ve tried calling it in the Submit button itself as an onClick, but I get errors when I do it this way.