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

Need To Restrict User from Edting Deleteing Record based on criteria using Trigger


I have Opportunuty Object in That i have Status pick list field have 3 values(in progress, startted , completed)
if Status values='completed' user should not be Edit or delete Record .

But user shoud able to create a  new record with Status completed "

Any help Apprisiated 

Hi Sonit,

it is working fine. but related lists also should not be edited. like Notes & Attachments,Products,Open Activities....