> i am also using cftry and cfcatch for groovy exception handling
> i just want to use cferror for built in cfserver side form validation,
> is it possible to use exception handling in this case?
> would you have to create custom exceptions? or would exception
> type="application"
> handle this?
I use a combination of Client Side JavaScript and a hidden input form value
like below. This below will trigger CFAS to look for that form field and
will display a page telling you which form fields are missing, the user then
has to use the back button to go back and fix the problems. It's not a real
pretty option, but it works well for what your trying to do. To make a
field required you just add the required value to the name of the form field
and make it a hidden type like below.
<cfinput type="text" name="myformfield" required="Yes" message="Please fill
in this field" ....>
<input type="hidden" name="myformfield_required" value="Please user your
back button and provide the value required for myformfield.">
That is how I catch it a the client side if they have JS enabled and on the
server if they do not. Respond to me off list if this does not make sense
and I can explain in more detail.
Bill
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.