how to write validation rules for phone number in below format
+()-
Example : +(91)-1234567890
When end user entering value for phone number it should only allow mentioned special characters + () – and numeric numbers.
exiting validation rule
IF( ISBLANK(End_User_Contact_Phone__c) , false, NOT(REGEX(End_User_Contact_Phone__c, "\D*?(\d\D*?){10}")))
Best Answer
This should do the trick given the requirements:
But it will allow for some funky phone numbers that are definitely not valid, e.g. "+123-+()()()"