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
sfdc sfdc 126sfdc sfdc 126 

How can I Hide the button on (activity history Standard layout)based on the field selected on Accounts

I have 3 fields on Account and 3 different buttons on contacts
On Account If Field A has value then Button 1 should appear to the User
On Account If Field B has Value then Button 2 Should appear to the User
On Account If Field C has value then Button 3 should appear to the User

I tried by workflow rule but its not working
Michael DsozaMichael Dsoza
Hi,
You can't hide button from standard layout..better keep single button & on clicking button...In extension class write conditional logic(field value) to achieve your functionality.

Hope it will help you.