function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
NOT( AND( (LEN(Mobile__c)==16 ),(REGEX(Mobile__c,'[+91]{3}-[7-9]{1}[0-9]{2}-[0-9]{3}-[0-9]{4}'))) )
NOT(REGEX(Phone, "\\D*?(\\d\\D*?){10}"))
NOT(REGEX(Account__r.Phone,"[+91]{3}-[0-9]{3}-[0-9]{3}-[0-9]{4}"))
[+91]{3} :
-[1-9]{1}[0-9]{2,3}-
-[0-9]{3}-
[0-9]{4}
Please check the below code that validates for mobile numbers with +91-xxx-xxx-xxxx format and the mobile number should start with 7 or 8 or 9.
Hope this helps you!
Best Regards,
Deepthi
1.Validates that the Phone number is in (999) 999-9999 format. This works by using the REGEX function to check that the number has ten digits in the (999) 999-9999 format.
2. Mobile number +91-999-999-9999 format
Stepwise
Ensure that number starts with +91
Ensures that 1st digit after +91, there is no 0 (1-9 excepted) and the next two digit can be anything between 0-9, then a hyphen.
Ensures that next 3 digits are anything between 0 to 9
Ensure that last 4 digits are between 0 to 9
Hope this helps you!
Regards,
Jyothsna