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
Zack Glacken 4Zack Glacken 4 

Validation rule, if two values are the same, checkbox.

I'm learning salesforce and sometimes struggle with overthinking validation rules. If two values are the same - the checkbox must be checked. Can someone enlighten me, please?
VinayVinay (Salesforce Developers) 
Hi Zack,

You can create a simple workflow rule to update checkbox field to true based on two field values.

https://help.salesforce.com/articleView?id=workflow_rules_new.htm&type=5

Validation won't update checkbox value but it will restrict to enter proper data.

Let me know if you have any questions.

Thanks,
Vinay Kumar
Mahendra Singh 19Mahendra Singh 19
You can create a Workflow / processbuilder to marked checkbox as true if both fields have same value.
Use field criteria and update field.