Here is my validation rule for Account Name:
NOT(REGEX( Name , "[a-z A-Z 0-9]+"))
^^^ This one works fine.
Here is my validation rule for Billing Address:
NOT(REGEX( BillingAddress , "[a-z A-Z 0-9]+"))
^^^ This one gets the syntax error.
What am I doing wrong?
2 risposte
REGEX function's first argument has to be text. BillingAddress is not of type Text, it is of type Address ( which is a compound field). Please try using the validation rule something like this to check BillingStreet: NOT(REGEX( BillingStreet , "[a-z A-Z 0-9]+"))
You can do similarly for BillingCity, BillingState, and BillingCountry.
Thanks,
Karthik