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
Heaven DevHeaven Dev 

Add Custom button in enhancedList Visualforce page?

Is possbile to add Custom button in  enhancedList Visualforce component?

User-added image
NagendraNagendra (Salesforce Developers) 
Hi,

You cannot create an <apex:commandbutton> from which you can invoke controller actions, however, you can create a 'Custom Buttons and Links' style button from the setup menu. If you go to the Custom Buttons and Links section for the sObject that you are feeding to the type attribute of your enhanced list, you can create a button whose display type is 'List Button'.

Then it will show up on any enhanced list component of that sObject type. As I mentioned, you can't invoke a controller action, but you can navigate to an arbitrary URL, display a Visualforce page, or run arbitrary javascript that way.

Hope that helps you.

Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.

Thanks,
Nagendra