> -----Original Message----- > From: Jochem van Dieten [mailto:[EMAIL PROTECTED] > Sent: Friday, June 27, 2003 7:52 PM > To: CF-Talk > Subject: Re: Smart or Stupid (CFLOOP as a GOTO) > > Jim Davis wrote: > > > > Okay - so I'm working on a form and I need to validate fields for many > > things. Taking "email address" for example I need to validate that it's > > been filled in (not zero length), that it's less than 255 characters > (the > > database limit), that it fits a email format and finally that the email > > address isn't already in use. > > > > What I'd like to be able to do is check through all these validations. > The > > instant a problem is found I want to stop checking. I would then > redisplay > > the form and so forth. > > I think checking all the input and then displaying all the errors at > once provides a much better user experience.
This is more for multiple validations on a single field. So, for example, if there's no email address entered I don't want to go though the process of checking to see if it's in the DB. I could do this with a lot of CFIF logic, but I was looking for a way to bail out totally ignoring further checks (for the same field). Jim Davis ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4