Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Drayp #1
cfform password validation
I'm trying to get a standard password / repeat passord validation to work in a
Flash form. I assume I need to use javascript validation but do I use it with
the onValidate function of the fields in question or do I use the onSubmit of
the form? I'm finding it confusing as I need to use the format
handleValidation(form_object, input_object, object_value) for each field (I
think) so how do I compare the two fields? Hope that makes sense
Drayp Guest
-
CFFORM validation trumping Custom Validation
Is there any way for custom form validation to work in concert with the cfform validation? I have a custom script that compares the values of two... -
CFFORM Validation trumping Custom Form Validation
Is there any way for custom form validation to work in concert with the cfform validation? I have a custom script that compares the values of two... -
CFFORM Validation Bug
I'm using CFFORM and CFINPUT. I have several fields set to "required='yes'". It works fine in Firefox. However, in Internet Explorer, it's off... -
Issue with CFform validation
Hi, I have just received a notification from my host that my cfforms have a coding mistake and therefore the JS error that is submited. Is it... -
CFForm Validation
Hi, This is a cfform validation question. How do I verify that the value entered in the "confirm password" box is the same as that entered in... -
Mike Nimer #2
Re: cfform password validation
2 postings with the same question in 1 day. cool, easy to answer.
try this:
-----------------------
<cfform action="#CGI.SCRIPT_NAME#?event=users.passwordchan geaction"
method="post" name="passwordchange" height="300" width="400" skin="haloblue"
format="flash" preloader="yes" onSubmit="if( newpassword.text !=
newpassword2.text ){ alert('passwords don\'t match'); return false; }">
<cfinput type="text" name="currentpassword" size="12"
message="Please enter current password!" label="Current Password"
required="yes" />
<cfinput type="text" name="newpassword" size="12"
message="Please
enter new password!" label="New Password" required="yes" />
<cfinput type="text" name="newpassword2" size="12"
message="Please
enter new password again!" label="New Password Again" required="yes" />
<cfinput type="submit" name="changepassword" value="Change My
Password" label="Submit" validate="submitonce" />
</cfform>
------------------------
---nimer
"Drayp" <webforumsuser@macromedia.com> wrote in message
news:cvnb4q$gc3$1@forums.macromedia.com...> I'm trying to get a standard password / repeat passord validation to work
> in a
> Flash form. I assume I need to use javascript validation but do I use it
> with
> the onValidate function of the fields in question or do I use the onSubmit
> of
> the form? I'm finding it confusing as I need to use the format
> handleValidation(form_object, input_object, object_value) for each field
> (I
> think) so how do I compare the two fields? Hope that makes sense
>
Mike Nimer Guest



Reply With Quote

