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
Matthew Hayes 46Matthew Hayes 46 

Validation rule for a check box

We have a check box X that MUST be filled out to save a record.  You can't make a check box required so I wanted to create a validation rule that would not allow the record to be saved if the checkbox was false.  Is that possible?
Foram Rana RForam Rana R
Hi Matthew,

I hope you are doing well .....!!
Please use the below Screenshot:

User-added image



User-added image


Error Condition Formula :   IF(Match_Billing_Address__c = false, true, false)​​​​​​​
replace Match_Billing_Address__c with  your field.


Hope this helps you.
If this helps kindly mark it as solved so that it may help others in the future.

Thanks & Regards,
Foram Rana
Devi ChandrikaDevi Chandrika (Salesforce Developers) 
Hi Mathew,
For the above requirement you can create validation rule with below formula
(! custom_Checkbox__c )

Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.

Thanks and Regards