(Only the telephone number is optional.) It also checks to make sure that the telephone number and e-mail address are properly formatted and that the number to use in a challenge question is in the proper range. It posts back to itself, and dumps the submitted results.
In addition to native Cold Fusion input validation using the validate attribute of the cfinput and cftextarea tags, the following tags support the on Validate attribute, which lets you specify a Java Script function to handle your cfform input validation: The following example validates a password.
The following form asks for information to use when registering a new user.
It checks to make sure that the user enters required information.
Flash checks do not differentiate between the two events for validation.
The following information describes considerations for validation in cfinput and cftextarea tags, and show a more complete example.