cfform password validation

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139