Phone Numbers

This pattern helps users input a phone number.

How it works

Phone numbers are validated by checking the following:

  • entries must be exactly 10 characters (not including dashes)
  • entries must be numbers only with no special characters

When to use

Follow this pattern whenever a phone number is requested, such as for marketing communication, etc.

Tips

Give an example of a proper phone number format when a validation error occurs. This will help the user understand and correct their mistake more easily.