function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cunninjacunninja 

Validation Rule Question

Hey All-

 

I'm trying to create a validation rule that says the following:

 

If a check box field "z" is  checked(true), then date field "x" and date field "y" cannot have any value entered into them. Please let me know if any of those requirements need clarification. Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
BA_AdminBA_Admin

Try this

 

AND(( z__c = true ),
OR(NOT(ISBLANK(x__c )), NOT(ISBLANK(y__c ))))

All Answers

BA_AdminBA_Admin

Try this

 

AND(( z__c = true ),
OR(NOT(ISBLANK(x__c )), NOT(ISBLANK(y__c ))))

This was selected as the best answer
cunninjacunninja

Thanks, BA. That worked!