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
Nandhini S 3Nandhini S 3 

checkbox field reverting back to false

Hi Guys,
I have a checkbox field 'Unlock for approvals'. Default value is false. There is a trigger to set it to 'True' based on the status value. But the field gets updated twice, it's changed to true and again reverted back to false.
I checked the logs but couldn't find anything useful.
The field is used only in two classes and both are to set it to true.There is no process to set it to false.
Does anyone have any insight on why this could happen?
ravi soniravi soni
hi Nandhini S 3,
do one thing, comment both line from where checkbox field is getting true and now manually set checkbox value  to True  and check still it's doing set False.
If Yes, you hava another trigger from where this value is making false(You can check Flow,Process And you can put a view on Apex if it is refrence with that trigger).
don't forget to mark it as best answer if it helps you.
Thank you