Skip to main content
Inspiring
February 23, 2009
Question

Validate Email Flash Form

  • February 23, 2009
  • 1 reply
  • 1876 views
Hi All
cfform validation is driving me nuts.
I have a simple form with a submit button and an input text field.
I need to validate the form field for an "email" with an apostrophe in it.

If I use a html form the cf validation works correctly, but as soon as I add format="flash" the validation fails.

Can you tell me why this is giving an error.

Some sample code
<cfform method="get" name="myform" format="flash">
<cfinput type="submit" name="submit" value="submit" />
<cfinput type="text" name="email" label="Email" validate="email" validateat="onsubmit" required="yes" message="Invalid Email">
</cfform>

Ken
    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    June 6, 2009

    I too have noticed that the validation algorithm for email is weaker in flash forms. It's no consolation to you, but the livedocs on cfinput have this to say about it:

    The algorithms used for onSubmit and OnBlur validation in Flash might vary from those used for HTML or XML format, and generally follow simpler rules.