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
Maria WallaceMaria Wallace 

How do I write a validation rule for a field with the following requirement: I have one

How do I write a validation rule for a field with the following requirement: It gets checked by the user and as a result I need a second field to also be checked?  It seems too simple to use a dependent field.
David BermanDavid Berman
AND(Field1__c == true, Field2__c != true)
Maria WallaceMaria Wallace
Thanks so much David!!  I'll try it out -- fingers crossed.
Maria WallaceMaria Wallace
Where do I add this formula?  I thought I could do it at the same time that I create the field that is driving the second field to be checked.  But it won't let me.  
David BermanDavid Berman
This would be a new validation rule at the object level (e.g. Opportunity, or wherever those fields are).