Handling form field validation errors

When you use server-side form field validation, the default validation error message describes the error cause plainly and clearly. However, to give the error message a custom look or provide additional information such as service contact phone numbers and addresses, use the cferror tag with the Validation attribute in the Application.cfc initialization code. Or, specify your own validation on the Application.cfm page. An example of such a page is provided at Example of a validation error page section. You can also place form field validation error handling code in the Application.cfc onError method.