You need to sign in to do that
Don't have an account?

Custom button for VF Page
Hi,
I created a VF page and custom controller. I would like to add a button on the Account Page to go to the VF Page. When I try to create the button, I select detail page button and the content source is visualforce page, but there is nothing in the content drop down box.
I don't know what I am doing wrong. Is there a setting somewhere I need to change? I am doing this in my sandbox on Enterprise Edition.
Thanks,
You'll only be able to select visualforce pages that use the standard account controller. You can then make your custom controller an extension controller to use your custom code.
All Answers
You'll only be able to select visualforce pages that use the standard account controller. You can then make your custom controller an extension controller to use your custom code.
Thanks so much! It works!
Ok...one more quick question.
This is what I now have in my VF Page
How do I now call the controller in my test class?
No longer works.
Thanks,
David
As you are an extension controller, you'll need to instantiate it with the standard controller that it extends.
E.g.
Thanks! Now if only my test would not fail, I would be all set!