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
JaxBeachDevJaxBeachDev 

Help with Validation Rule Please

Hi,

 

I can't seem to figure out formula language.  How would I write a validation rule that states if one check box is checked (true) then a second checkbox becomes required?  Thanks in advance.  :smileyhappy:

Best Answer chosen by Admin (Salesforce Developers) 
Steve :-/Steve :-/

are you all set with this or do you still need help?

All Answers

Steve :-/Steve :-/

 

AND(Checkbox_1,NOT(Checkbox_2)) 

 

 

or you could also do

 

AND(Checkbox_1 = TRUE, Checkbox_2 = FALSE)

 

 

Steve :-/Steve :-/

I dunno why I keep writing these things for you after all the beer you owe me ;-p 

metaforcemetaforce

This checks if any one of the two checkboxes is checked and the other is not.

 

OR (AND( Checkbox1__c , NOT(Checkbox2__c) ) , AND( Checkbox2__c , NOT(Checkbox1__c) ) )

Steve :-/Steve :-/

are you all set with this or do you still need help?

This was selected as the best answer
JaxBeachDevJaxBeachDev

Sorry, I forgot to come back and accept - been slammed.  Looks like we are up to a couple pitchers now :smileyvery-happy: