You need to sign in to do that
Don't have an account?

need help with a simple validation rule
We have a custom required text field called "Locale" for leads. In addition to being required, I want to validate that it is set to either "US" or "CA" during edit/create. Any ideas? Pseudo code looks like this:
if the locale equals US or CA
allow update/insert
otherwise
display error message
if the locale equals US or CA
allow update/insert
otherwise
display error message
NOT(OR(Locale__c = 'US', Locale__c = 'CA'))