Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Validate Email Flash Form

Enthusiast ,
Feb 22, 2009 Feb 22, 2009
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
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 06, 2009 Jun 06, 2009
LATEST

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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources