cf forms CAN validate cfselect boxes - you just have to code them properly:
the default/invalid option MUST have its value set to a single space
( that is [space] )
a common mistake is to set the value to an empty string, which 'breaks'
cf's built-in validation: any value other than a single
Sorry if this ends up being a dupe post.
I'm working on a client site that already had a CF Form in place using cfinput
and validation via required=yes
We added some select boxes that are required and as most of you know CF forms
don't really validate those. So, I am using jquery to validate
I generally try to roll my own validation and just use form instead. You
can much nicer validation. However with that being said I believe whatever
you define in onSubmit=return bla will only fire if the cf validation
passes.
Ray explains it here:
or JQuery is false return false,
if both true return true.
Steve
-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz]
Sent: Tuesday, February 01, 2011 12:16 PM
To: cf-talk
Subject: Re: Form Validation Issue using cfinput AND jquery
I generally try to roll my own validation
I'm not sure that's correct. Using the same scenarios (and assuming the
jquery validation is defined in onsubmit with return specified) here's my
understanding:
CFValidation = false - validation ends.
JQuery = doesn't get processed.
Form Doesn't Submit
CFValidation = true
JQuery = false -
5 matches
Mail list logo