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
augiewazaugiewaz 

Cannot Create a Custom Button for a Visualforce Page

Has anyone had this issue before?

 

I have created some VisualForce pages in sandbox and I want to create a custom button for one of the pages.

 

I have gone to the object and page to create a custom button. I then specify 'Visualforce page' as the Content Source. However, the Content drop down list appears blank even though there are Visualforce pages available.

 

In case anyone is wondering, I am using IE 7.0 and the Enterprise version of Salesforce.

 

Does anyone know how to get this sorted?

 

Thanks

Warren

Best Answer chosen by Admin (Salesforce Developers) 
JimRaeJimRae

You have to use the standard controller for the object on your page in order to have that page available as a custom button.  You can use your current controller as an extension of the standard controller to override and/or add new functionality.

 

 

All Answers

Sandip458Sandip458
Are you using Standard controller into that page
augiewazaugiewaz
No. I have my own Controller
Sandip458Sandip458
Can u please post your  VF page code ...
JimRaeJimRae

You have to use the standard controller for the object on your page in order to have that page available as a custom button.  You can use your current controller as an extension of the standard controller to override and/or add new functionality.

 

 

This was selected as the best answer