Phone number validations

Last published at: 2022-12-08 15:34:18 UTC
Delete

Learn how to set up Record Validation for validating phone numbers. If you're interested in how to use phone number validation, read our Usage Guide

For Phone number validation, Record Validation needs to know in which country the phone number is registered. If you enter a phone number without country code, RV checks the value in the Country field to determine the country to use for validation. You can set a default value for the Country field in the Record Validation Setup, or enter a Country value when creating or editing a record.

The standard configuration of Record Validation maps the Lead, Contact, and Account Object Phone fields to the designated Country field. For each Phone field, make sure that the Country field is mapped to the record field that contains the country that should be used for validating the phone number.

Delete

Phone numbers with country code

If you enter a phone number for validation including the country code, such as '+123456789' for a phone number in the United States, the phone number can be validated without needing a value in the Country field. If the Country field contains a country different from the country code of the phone number, the phone number is still validated as being correct if the number exists in the country that the country code refers to.

Add Validation

To add a phone field to use with Record Validation, click Add Validation.


Phone Pick a phone field you want to use with Record Validation.
Country Map the Country field. The value of the Country field determines the validation.
Format

Decide in what phone format you want to standardize your phone value.

E.164 (Default) - +1234567890
International - +1 234-567-890
National - (123) 456-7890
RFC 3966 - tel:+1-234-567-890

Allow Auto Formatting Allow Record Validation to automatically format and validate your phone number values.
Delete

How does Record Validation validate your Phone Number?

Record Validation analyses your (international) phone number value and parses, validates, and formats based on the Country field value or the phone number's country code. Format your phone number on the fly with each digit a user enters or validate after the value is entered. It returns a value that is a valid, formatted phone number.