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
Krishna12Krishna12 

Phone validation rule

i need this format ...validation rule

 

 

+91-(123)-12345

SwarnasankhaSwarnasankha

Hi Krishna!

 

You can use the following validation rule in which replace 'Phone' with the API Name of the Phone Number field you would want to validate:

 

NOT(REGEX(Phone, "\\+[0-9]{2}-\\([0-9]{3}\\)-[0-9]{5}"))