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
HNT_NeoHNT_Neo 

Validation Rule for a checkbox set to True

Hello, 

I have a custom checkbox in the opportunity object named: JDA__c that is set to true when a user determines it is to be checked. 

I want to ensure that once the checkbox is set to true by the user, that they will not be able to uncheck it or if they uncheck it and try to save the opportunity record, it will prompt them with an error that the JDA__c can not be unchecked. 

Can someone help me with a validation rule that would prevent a user from saving the opportunity record if they uncheck the box from true to false? 

Thanks!

API Field Name: JDA__c
Best Answer chosen by HNT_Neo
snehal surti 3snehal surti 3
Try this validation rule:

AND(Priorvalue(JDA__c)=true,ISCHANGED(JDA__c) )

All Answers

snehal surti 3snehal surti 3
Try this validation rule:

AND(Priorvalue(JDA__c)=true,ISCHANGED(JDA__c) )
This was selected as the best answer
HNT_NeoHNT_Neo
Thank you!