+ Start a Discussion
Dev Rana 16Dev Rana 16 

VisualForce page not showing up in the "Content" tab when creating custom button

Hello All,
my VisualForce page not showing up in the "Content" tab when creating custom button.
This Is my Vf Page
User-added image

this is my vf page.

User-added image

please help me,
thanks in advance
Amit Singh 1Amit Singh 1
Hello,

You are not using the standard controller in you VF page and extensions as well. Try with the below code for VF Page
<apex:page standardController="YourObject" extensions="receipt80g" cache="true" readOnly="false" applyHtmlTag="false" renderAs="false" showHeader="false">
Also, create a constructor in your class as given below:
public receipt80g(ApexPages.StandardController controller) {
 }
Let me know if this resolves your issue.

This will do the trick. Cheers :)

Thanks,
Amit Singh.
Dev Rana 16Dev Rana 16
Hello Amit,

Thanks for your help.