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
Sainath VenkatSainath Venkat 

Validation rule on status field based on checkbox

Hello Guys,

I am working on a validation rule that will prevent the users from changing the status value.

I have two objects Test__c and Risk__c, both are having a look up relationship here.
I also have a Checkbox__c field on Test__c object and Status__c picklist field in Risk__c object.

My requirement is that if Checkbox__c on Test__c object is checked then only I should able to change the Status__c on Risk__c object.
Can anyone help me out to complete this if possible.
Jolly_BirdiJolly_Birdi
Hello SaiNath

Please try this below validation formula on Risk Object

AND(NOT(Test__r.Checkbox__c),ISCHANGE(Status__c))

Let me know if it revert some error.

Please like and Mark it as best answer if you find it Positive.

Thanks,
Jolly Birdi