function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Navya sree 4Navya sree 4 

Validation rule on phone number?

When entering the information on UI: check, whether the phone number starts with "+" and the international country code. If not show an error message
Khan AnasKhan Anas (Salesforce Developers) 
Hi Navya,

Greetings to you!

Please use below validation rule:
LEFT(Phone, 1) <> "+"

It validates that the Phone number begins with a plus sign (+) for country code. Note that this validation rule conflicts with the ten-digit rule.

Please refer to the below link which might help you further.

https://help.salesforce.com/articleView?id=fields_useful_validation_formulas_contact.htm&type=5

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Deepali KulshresthaDeepali Kulshrestha
Hi Navya,

Please refer to the following links as it may be helpful in solving your problem:

https://help.salesforce.com/articleView?id=fields_useful_validation_formulas_contact.htm&type=5

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha