North American Phone Formats

The default format for North American phone numbers is (000) 000-0000. The phone formatting logic for North American phone numbers works as follows:

  • If the user enters 10 digits in a phone number field, then the number is formatted as (123) 123-1234.

  • If the user enters more than 10 digits, then the first 10 digits are formatted as (123) 123-1234, and the rest of the digits are formatted as the extension number. The user can enter up to 40 digits.

  • If the user enters fewer than 10 digits, then an error message appears.

  • If the user begins the phone number with a zero (0), then an error message appears.

This formatting logic is followed even when the default locale is not North America.