+ Start a Discussion
Josef DotzlerJosef Dotzler 

How to disable an action button shown in the highlights panel of a record page


I have created a custom record page which shows multiple action buttons in the hightlights panel. Is it possible to to disable or hide some of these buttons, e.g. depending on the contents of the record?
Dorian Sutton 9Dorian Sutton 9
I don't think there's any official way to dynamically display custom buttons depending on field values (there are some very hacky JavaScript solutions for this, but I wouldn't recommend them).

The best workaround I've come accross is to use Record Types - if you create a different Record Type for each combination you need, and create a Page Layout for each Record Type with the appropriate custom buttons available, then you can use Process Builder to update the Record Type according to your criteria when records are created / edited.