+ Start a Discussion
AttaridAttarid 

Can not see visualforce page in the content source drop down

Hi,

I have created a visualforce page but can't see it in the content source drop down when creating New Button or Link for an account. Please help!

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
jwetzlerjwetzler

You need to be using the appropriate standardController to be able to use your page as a custom button or link.  Note that for a list button you need to use the standard list controller.

 

You can put any custom functionality in an extension. 

All Answers

jwetzlerjwetzler

You need to be using the appropriate standardController to be able to use your page as a custom button or link.  Note that for a list button you need to use the standard list controller.

 

You can put any custom functionality in an extension. 

This was selected as the best answer
AttaridAttarid

Thanks Jill, that works but now the extension has disappreared from the code edit window, I only see the code for the visualforce page. Earlier when I was using a custom controller it was appearing in the code edit window next to the visualforce page and I could edit both.

What should I do to get the extension back in the code edit window.

 

I really appreciate your help.

 

Thanks in advance.

jwetzlerjwetzler
Unfortunately extensions do not appear in the development mode inline editor at this time, just controllers.  It has been on the roadmap for us to support this for a very long time.  You will need to edit your extensions via setup (setup -> develop -> apex classes).
AttaridAttarid
Thanks for your help, I really appreciate it.
miteshsuramiteshsura

Hello! 

 

someone last year was stuck on similar situation, this year I am. 

I did what you mentioned, but I only see the Visualforce page when I select Detail Page Button in custom button. 

When I select List Button, I do not see the VisualForce page??

 

 

Visualforce page:

 

<apex:page standardController="Product_Line_Item__c" extensions="myControllerExtension">    

<apex:form >

    ............

     </apex:form>

</apex:page>

 

Controller Extension:

 

public class myControllerExtension {

                public string searchProd {get;set;}

                public List<PricebookEntry> prod{get;set;}

                public String sortField {get; set;}

                public String previousSortField {get; set;}

 

                public myControllerExtension(ApexPages.StandardController stdController) {

                }

 

..........

}

 

 

miteshsuramiteshsura

ignore the last post, I fig'd it out..