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
Anton ZhuravlevAnton Zhuravlev 

Cannot see my Visualforce page in the Content on the Custom Button

Hi,

I need to create a Custom Button with a Content Source as Visualforce Page. I have created a Visualforce page for this.

The problem is that when I choose Visualforce Page in the Content Source of the Custom Button setup, the Content list remains empty. It doesn't show my Visualforce page there, despite it is already created and ready for use.
How can I put my Visualforce page in the Content of the Custom Button?

User-added image

User-added image
Best Answer chosen by Anton Zhuravlev
Dushyant SonwarDushyant Sonwar
Anton,

You need to use standardcontroller to show VF page  in content picklist.

Use standardcontroller="lead" in Apex:page, it will be available in lead custom buttons.

​​​​​​Hope this helps!

All Answers

Dushyant SonwarDushyant Sonwar
Anton,

You need to use standardcontroller to show VF page  in content picklist.

Use standardcontroller="lead" in Apex:page, it will be available in lead custom buttons.

​​​​​​Hope this helps!
This was selected as the best answer
Anton ZhuravlevAnton Zhuravlev
Thanks, Dushyant! 
That works.