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
6

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 '14 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 '14 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.