function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.