Flash form with cfinput validation not working

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default Flash form with cfinput validation not working

    when using a cfform with format flash and using a cfinput in that form the
    validate field does not work.
    but when using the same validation with a cfform without defining the format
    it is working good.

    example: in this code the validation does not work

    <cfform format="flash" name="testform">
    <cfinput type="text" name="nickname" message="Enter Nickname!" required="yes"
    validate="regular_expression" pattern="^[\w]{5,20}$" label="Nickname"/>
    <cfinput type="Submit" name="submit" value="Submit">
    </cfform>

    but it work for this one.

    <cfform name="testform">
    <cfinput type="text" name="nickname" message="Enter Nickname!" required="yes"
    validate="regular_expression" pattern="^[\w]{5,20}$" label="Nickname"/>
    <cfinput type="Submit" name="submit" value="Submit">
    </cfform>

    for my project i need to use flash form

    can any body help me please

    Viper288 Guest

  2. Similar Questions and Discussions

    1. New patches / form validation not working now
      Just wondering if anyone out there is running 7,0,1,116466. We seem to be running into an issue after installing the latest patch I want to say its...
    2. CFINPUT Validation not working in CF7
      I've tried using the CFINPUT validation in CF7 but can't seem to get it to work. Here's the code I'm using: <cfform method="post"...
    3. form validation not working
      Hi, why can't I use form validations like required="yes" when I do it in Coldfusion MX 6 (Version: 6,1,0,63958)? I moved the code to Coldfusion 4.5...
    4. Disabled Flash Form CFINPUT control won't gray out
      The description in the documentation for the "enabled" attribute of a CFINPUT tag says, "A disabled control appears in light gray." However, this...
    5. cfinput validation not working
      I have a very simple form to capture email addresses for a newsletter. The problem is any input is submitted. Does anyone know what the problem and...
  3. #2

    Default Re: Flash form with cfinput validation not working

    I saw the problem and submitted product issue 65133 for it.

    Ted Zimmerman
    tzimmerman Guest

  4. #3

    Default Re: Flash form with cfinput validation not working

    I found some information
    validation type : regex or regular_expression:
    Matches input against the pattern attribute. Valid in HTML and XML format
    only; ignored in Flash format.

    so it can not be used in flash forms
    you can find it in this page:

    [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/[/url]
    wwhelp.htm?context=ColdFusion_Documentation&file=0 0000279.htm

    I wonder if there is some other way to use regular expressions for input
    validation.
    can any body help me????


    Viper288 Guest

  5. #4

    Default Re: Flash form with cfinput validation not working

    I had looked for something just like that and totally missed it. Thanks for finding that.

    Ted Zimmerman
    tzimmerman 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