Hi 

Since cfform is simply creating javascript validation on the fly, you could
do the following:

View the source in the page, you'll see that cfform creates a javascript
method which is then called via a <form onsubmit"...."> tag.

Basically you could take that javascript and HTML source (you only need the
form and the javascript), put it in a cfm or html page and it'll still work
fine.

Once it'll directly in the page, you can change the validation order within
the method as you like.

A bit "around the houses" but it'll work.  Otherwise of course you could
always write the validation yourself :)

hth
Mark





-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 02 March 2005 07:41
To: CF-Talk
Subject: Setting validation order when validating via CFINPUT

Hi, does anyone know how to set the validation order, when doing validation
with CFINPUT inside CFFORM?

I have 5 fields.

The first at top of form is FIRSTNAME.

Then LAST NAME.

The last is ZIPCODE.

But Cold Fusion tries to validate zipcode first arbitrarily, then another
field, but in no particular order.

This is a pain in the ass and looks unprofessional. Obviously you want to
ask for the first field before the person can move onto the next one.

Does anyone know how to pull this off, so it asks for FIRSTNAME info first,
then LAST NAME then ZIPCODE?




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197082
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to