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
Joseph FerraroJoseph Ferraro 

can't select visualforce page as custom button content in sandbox

I'm attempting to set a visualforce page as the content of a custom opportunity detail button in a sandbox, but when i select content source as "visualforce page", the picklist that's supposed to contain the list of visualforce pages is empty.

any ideas?

thx
dchasmandchasman
Only VF pages that use the standard controller for Opportunity will be listed in the situation you describe.
hisrinuhisrinu
What about for the List Buttons, I am not able to get the VF even if I use the Standard Controller?
jwetzlerjwetzler
Then you need to use a standard list controller.  Please read the documentation for this.  There is even a section about using list controllers with list buttons.
hisrinuhisrinu
Thanks Jill, Its working fine.