3

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

1 Answer 1

7

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.

2
  • 1
    Damnit you beat me to my complete answer with List buttons and detail buttons, +1 all mighty Andrew
    – pjcarly
    Feb 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .