Groups | Blog | Home
all groups > coldfusion flash integration > may 2005 >

coldfusion flash integration : Validating 2 password fields in flash form.


akulla
5/17/2005 12:00:00 AM
I am creating a standard signup page with 2 password fields -- in order to
validate the password was entered correctly, is there a way to compare the two
fields before submission within flash forms without using JS, or Server Side.

Thanks

Roger
DaveHCYJ
5/17/2005 12:00:00 AM
You can use the onChange field and action script to get it done.

Here is a little code snippet taken from a form I use that might point you in
the right dirrection:

<cfformgroup type="vbox">
<cfinput name="signDate" type="text" disabled="true"
value="#DateFormat(Now(), "MM/DD/YYYY")#" label="Date" size="10"/>
<cfinput name="signInitials" type="text" required="yes" mask="AAA"
label="Initials" size="10"
onChange="if(signInitials.length > 1 && signSocial.length ==
4){submit.visible=true;}else{submit.visible=false;}"/>
<cfinput name="signSocial" type="text" required="yes" mask="9999"
label="Last 4 digits of Social Security Number" size="10"
onChange="if(signInitials.length > 1 && signSocial.length ==
4){submit.visible=true;}else{submit.visible=false;}"
validate="integer" message="You must enter that last 4 digits of your
social security number"/>
<cfinput name="submit" type="submit" value="Submit Application"
visible="false" />
</cfformgroup>
akulla
5/17/2005 12:00:00 AM
This will work thanks.

AddThis Social Bookmark Button