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

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts