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
Gheorghe Sima 7Gheorghe Sima 7 

List button

Hi,
I want to make a list button, but when i select the content source Visualforce Page i don't see my page in the content section. I want to make an button to Contact and i set the standardcontroller="Contact".
Can anyone help me?
User-added image
MandyKoolMandyKool
Hi,

If you wanted to have list button; you need to write "Extension", only then you can see this page in "Content" section.
Also make sure that your extension should be - StandardSetController.

Example - If you wanted to have a list button for Contact.
1. The VF Page should have below markup.
<apex:page StandardController="Contact" recordSetVar="cons" extensions="contactExtension">
    <!-- Your VF Page code-->
</apex:page>

2. The controller extension
public class contactExtension{
     public contactExtension(ApexPages.StandardSetController setController){
         //Your code here
     }
}

Hope this resolves your issue!!