Validation - Phone numbers

This pattern helps ensure users input their telephone numbers in a recognizable format.

Use Cases

Only request a telephone number from users when it is essential. Some users may not have access to a phone, so provide a choice about how they can be contacted, if possible.

How it works

Telephone numbers are validated by checking for an entry of at least 10 digits (11 if there is an additional country code).

Tips

Inform users why a telephone number is needed

Explain why they might be contacted by phone and when.

Allow different formats

Be flexible about how a user can enter in a phone number. Allow spaces, brackets, hyphens and dashes so that users can write in a format familiar to them.