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
function checkPhonefield(inputPhoneNumber) { var PhoneMatcher = /^[0-9-+]+$/; if (!PhoneMatcher.test(inputPhoneNumber)) { alert('Please provide valid Phone number'); return false; } else return true; }
NOT(REGEX( Phone , "\\D*?(\\d\\D*?){10}"))
NOT( AND( (LEN(Mobile__c)==16 ),(REGEX(Mobile__c,'[+91]{3}-[7-9]{1}[0-9]{2}-[0-9]{3}-[0-9]{4}'))) )
Please mark it best answer it works so that it will be helpful for others
Thanks
Sandeep Singhal
http://www.codespokes.com/
Copy this formula into your Error Condition formula of validation rule. Let me know if it helps you.
Thanks,
Dhanya
Please check the below validation rule for mobile number in "+91-xxx-xxx-xxxx" and starting with "7 or 8 or 9" digits.
Hope this helps you!
Best Regards,
Deepthi