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
MRK.ax399MRK.ax399 

Removing Standard buttons

How can I remove buttons based on certain status? For example, if the lead is in progress status, disable or remove the edit button?
will smith Linwill smith Lin
I think you can use work flow.
werewolfwerewolf
Buttons derive from the page layout, and the only way to change the page layout is to change the record type.  So you could make a workflow that changes the record type of the object according to the status, and make corresponding page layouts that show the buttons you want for that record type.
MRK.ax399MRK.ax399
Thanks. I will try it.