I am creating a new custom button or link, and when i try to use a Visualforce page my content dropdown list is empty. How do i get a VF page to trigger on a custom button or link.
1 Answer
You need to ensure your Visualforce page uses a Standard Controller for your object.
For Detail Page custom buttons...
<apex:page standardController="Account">
For List View custom buttons...
<apex:page standardController="Account" recordSetVar="accounts">
Then Salesforce will display your pages in the drop down list.
You can read a more detailed walk through and some security considerations here.
-
1Damnit you beat me to my complete answer with List buttons and detail buttons, +1 all mighty Andrew– pjcarlyFeb 10, 2014 at 15:33
-
Ha sorry dude, bit of a hot topic for me a few blog posts back this one, quite a bit to it once you get into the detail of it... Feb 10, 2014 at 15:34