You need to sign in to do that
Don't have an account?
Attarid
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
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
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.
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.
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) {
}
..........
}
ignore the last post, I fig'd it out..