To prevent users from deselecting a checkbox field in Salesforce after it has been checked and saved, you can create a validation rule on the object.
This approach is useful for fields that represent one-way state transitions, such as marking a record as Approved, Completed, or Verified, where the value should not be changed back after confirmation.
To create a validation rule:
Go to Setup.
Open Object Manager.
Select the required object.
Click Validation Rules from the left navigation.
Standard Object:
Go to Setup.
Search for the object name in the Quick Find box.
Click the Validation Rules link under the object name.
Custom Object:
Go to Setup.
Search for the object in the Quick Find box.
Select the object.
Scroll to the Validation Rules section.
Click New.
Enter a descriptive rule name.
Add the following formula in the Error Condition Formula field:
AND(
PRIORVALUE(checkbox__c),
TRUE,
ISCHANGED(checkbox__c)
)
Note: Replace checkbox__c with the API name of the checkbox field you want to lock.
This validation rule uses three Salesforce formula functions together:
PRIORVALUE() retrieves the value of the checkbox before the current save operation.
ISCHANGED() returns true when the field value has been modified.
AND() ensures all conditions are true at the same time.
The rule prevents users from unchecking a checkbox that was previously selected because the formula detects that the checkbox was already true and is being changed.
Add an Error Message and optional description.
Select Top of Page or a specific field for Error Location.
Click Save.
Validation Rules Documentation
PRIORVALUE Function Reference
000385194

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.