I'm not sure I understand the problem you're having ...

Normally, how the CFFORM validation works is that the form is validated from
the top down.

Let's say you have

name = required
address = required
zip = zip validate
credit card = cc validate 

the script will first find "name" blank if it's left blank, but if it's
filled out, then "address" will trigger if it's left blank, etc.  

That's default behavior. So I'm not clear on what other behavior you might
be seeing.

H.



> -----Original Message-----
> From: Azeem Huda [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, January 20, 2003 8:35 AM
> To:   CF-Talk
> Subject:      <cfinput> & form validation
> 
> I have created a typical membership form and am trying to validate the
> form
> on the client side utilising <cfinput> tags.
> However, I have come up against a few problems and am stumped.
> 
> 1)    I have set the required=yes in most of my <cfinput> fields yet the
> order
> at which the javascript error message appears,        i.e. the validation
> is not
> in the same order as the fields in my form
> 
> 2)    When the onerror attribute is included, the error message does not
> appear
> 
> Basically, I need the form to display the relevant error message when a
> field is left blank/the wrong datatype and highlight the offending field.
> Can someone point me in the right direction?
> Thanks in advance,
> Azeem
> 
> 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to