After you add text field, text area, and email elements to forms, you can edit the properties to include validators. Several standard validators are available to ensure that user responses meet your criteria. The following table describes the restrictions that the standard validators enforce, as well as the default error messages that appear when users attempt to save data that does not meet the validator criteria.
Validator |
Allows |
Default Error Message |
Alpha |
Upper and lower case letters. |
Please enter letters only. |
Alphanumeric with spaces |
Upper and lower case letters, numbers, and spaces. |
Please enter letters, numbers, and spaces only. |
Alphanumeric without spaces |
Upper and lower case letters and numbers. |
Please enter letters and numbers only. |
|
Email addresses with the format youraddress@yourdomain. |
Please enter a valid email address with the format youraddress@yourdomain. |
Numeric |
Numbers (just a string of digits). |
Please enter numbers only. |
Numeric with decimals |
Numbers (just a string of digits) and a decimal. |
Please enter numbers and a decimal only. |
Social Security number |
Numbers and hyphens with the format ###-##-####. |
Please enter a valid Social Security number with the format ###-##-####. |
U.S. date |
Legitimate date with the MM/DD/YYYY format. Months can take one or two digits, from 1 to 12 or 01 to 12. Days can take one or two digits, from 1 to 31 or 01 to 31. The validator recognizes the number of days in a given month and also takes leap years into account. |
Please enter a date with the format MM/DD/YYYY. |
U.S. phone |
U.S. phone number with area code. The validator requires 10 digits. It allows hyphens or periods to separate the area code and first three digits of the phone number, and it allows parentheses around the area code. |
Please enter a 10-digit phone number. You can use hyphens or periods to separate numerals, and you can put the area code in parentheses. |
Zip code |
5-digit Zip code or 9-digit Zip code with a hyphen after the first 5 digits. |
Please enter a 5-digit Zip code or a 9-digit Zip code with a hyphen after the first 5 digits. |