12 Replies Latest reply on May 1, 2007 10:28 AM by BKBK

    Form Page Data Validation?

      I use ColdFusion's built-in server-side data validation alot:

      input type="hidden" name="address_required" value="The Address field is required."

      I love the fact that it goes on the page that contains the form fields, rather than the page that processes the form. That is, if page1.cfm has the form, and page2.cfm has a query that writes the Address to a database, I can put the validation on page1.cfm

      Is there any way possible to write custom validation code that can go on the form page, rather than the processing page? By "custom validation", I mean something CF doesn't natively handle. Something like verifying that if the "Other" radio button is selected, they also filled in the "Specify" textbox.

      Any thoughts?