0

I have written this simple validation rule that will throw an error when the user enters less than 2 characters in Name and Responsibilities fields.

LEN(Name)<2 && 
LEN(Responsibilities__c)<2

But this isn't working . If I use either of those then the error is showing up but when I'm combining both the record is being saved even if I enter less than two characters in either of the fields.

1
  • whats you actual requirement? both Name and Responsibilities__c must be greater than 2 characters? Mar 14, 2017 at 17:56

1 Answer 1

1

Change your rule from && to ||, so both Name and Responsibilities__c must be at least 2 Characters.

LEN(Name)<2 || 
LEN(Responsibilities__c)<2

Also, verify in case you need to do BLANK check before checking the length

1
  • Aah! You beat me to it.
    – Samir
    Mar 14, 2017 at 17:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .