You need to sign in to do that
Don't have an account?
Alex Christensen 1
RGEX Validation Rule issue
I created a RGEX formula to only allow for spaces and alphabetical letters when creating a contact. However, the rule only needs to be implemented for two profiles. When I add the profile name into the formula it blocks the user from creating a contact completely even if both fields are filled out correctly.
OR(NOT(REGEX(FirstName,"^[a-zA-Z_ ]*$")),NOT(REGEX(LastName,"^[a-zA-Z_ ]*$")))&& $Profile.Name = "Customer Support" || $Profile.Name= "Technical Support"
OR(NOT(REGEX(FirstName,"^[a-zA-Z_ ]*$")),NOT(REGEX(LastName,"^[a-zA-Z_ ]*$")))&& $Profile.Name = "Customer Support" || $Profile.Name= "Technical Support"
Try below snippet.
Please mark as Best Answer if above information was helpful.
Thanks,