Cfform validation
i have cfform regular expression validation. wondering if there way not have form submit when enter hit. validates if hit enter go next form field.
any ideas?
to control whether or not submit form, use actionscript value of cfform's onsubmit attribute. if last line of script return false, form wont submit. example follows
<cfif isdefined('form.test')>
<cfdump var="#form#">
</cfif>
<cfform method="post" format="flash" onsubmit="return submit_it()">
<cfformitem type="script">
function submit_it(){
// test, toggle between true , false
return true;
}
</cfformitem>
<cfinput type="submit" name="sbmt" value="test it!">
<cfinput type="text" name="test">
</cfform>
More discussions in ColdFusion Rich Forms
adobe
Comments
Post a Comment