You need to sign in to do that
Don't have an account?
Megan27
Validation Rule to prevent dashes, slashes & spaces.
Hi Everyone!
I am trying to create a validation rule for a SSN field. We want to make sure users only are allowed to save numbers. No slashes, dashes, or spaces and if they don't add all 10 digits they get an error message. Any ideas? Thanks.
I am trying to create a validation rule for a SSN field. We want to make sure users only are allowed to save numbers. No slashes, dashes, or spaces and if they don't add all 10 digits they get an error message. Any ideas? Thanks.
OR(
LEN(SSN__c)>10,
LEN(SSN__c)<10,
CONTAINS(SSN__c, "/"),
CONTAINS(SSN__c, " "),
CONTAINS(SSN__c, "-")
)
AND(
NOT(ISBLANK(HomePhone)),
OR(
LEN(HomePhone) != 10,
!ISNUMBER(HomePhone)))