Skip to main content

Hi,

 

I created a validation rule on a custom object to "lock" records (prevent any changes) whenever checkbox final__c is checked. 

 

The condition in the validation rule is 

final__c = true

 

Problem is that once I enable the validation rule, it throws the Error as I am checking final__c and trying to save. I want it to throw the error only after the final__c has been checked and saved.

 

Any thoughts on how to resolve this?

5 answers
  1. Dec 21, 2021, 2:58 PM

    realizing PRIORVALUE works on checkboxes, maybe that's the simpler route.

    OR(

    Final__c,

    PRIORVALUE(Final__c)

    )

0/9000