all groups > coldfusion flash integration > october 2006 >
You're in the

coldfusion flash integration

group:

Flash form with cfinput validation not working



Flash form with cfinput validation not working Viper288
10/19/2006 12:00:00 AM
coldfusion flash integration: 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
Re: Flash form with cfinput validation not working tzimmerman
10/20/2006 3:47:41 PM
I saw the problem and submitted product issue 65133 for it.

Re: Flash form with cfinput validation not working Viper288
10/20/2006 8:09:11 PM
I found some information
[b]validation type [/b] : regex or regular_expression:
Matches input against the pattern attribute. Valid in HTML and XML format
only; [u][b]ignored in Flash format.[/b][/u]

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

http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/
wwhelp.htm?context=ColdFusion_Documentation&file=00000279.htm

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

Re: Flash form with cfinput validation not working tzimmerman
10/20/2006 8:29:21 PM
I had looked for something just like that and totally missed it. Thanks for finding that.

AddThis Social Bookmark Button