For Adobe ColdFusion application servers Telephone

Telephone validates a US telephone number of the form ###-###-####, providing equivalent functionality to the <cfinput validate="telephone"> tag. It does not verify that the number is valid - merely that the format is correct. The key components of this preset are the regular expression used to validate the number, and a custom error message. Note that this preset is unsuitable for use on forms exposed to an international audience as telepone number formats vary widely. This preset could easily be adapted for other telephone number formats.

Examples

The plain preset:

<cf_terrafield
  preset="Telephone"
  name="MyTelephone1"
/>

No comments yet