You need to sign in to do that
Don't have an account?
Michael Sabel 9
Trying to get validation rule right that excludes commas and periods from street address fields
So, I want to make sure that user can't type "St." for Street and must type "St" instead. And, that user can't type "Suite, 4" and must type "Suite 4".
So, no commas "," or periods ".".
Here's what I've tried. Not working because I think what I've done here is allow for commas and periods when I'm trying to exclude them. Not sure how to exclude them.
AND(
NOT(ISBLANK(MailingStreet)),
NOT(REGEX( MailingStreet, "[a-zA-Z0-9\\.\\,]+"))
)
Thanks.
So, no commas "," or periods ".".
Here's what I've tried. Not working because I think what I've done here is allow for commas and periods when I'm trying to exclude them. Not sure how to exclude them.
AND(
NOT(ISBLANK(MailingStreet)),
NOT(REGEX( MailingStreet, "[a-zA-Z0-9\\.\\,]+"))
)
Thanks.
AND(
NOT(ISBLANK(MailingStreet)),
OR(
CONTAINS(MailingStreet , "."),
CONTAINS(MailingStreet, ",") ))
Thanks,
Maharajan.C
All Answers
AND(
NOT(ISBLANK(MailingStreet)),
OR(
CONTAINS(MailingStreet , "."),
CONTAINS(MailingStreet, ",") ))
Thanks,
Maharajan.C