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
Ashish Kumar YadavAshish Kumar Yadav 

how to lock opportunity page based on the stage only admin should have to access edit the page?

GovindarajGovindaraj
Hi Ashish,

Give a try with below valodation rule,
AND (
IsClosed,
$Profile.Name <> "System Administrator",
OR (
ISCHANGED(Amount),
ISCHANGED(CloseDate), .. etc .. ) )
Include the fields on the OR part. Instead of going for too much customization i would prefer this one.

Please let us know if this helps.

Thanks,
Govindaraj.S