0
votes

I'm looking to create a custom button on the Case object that launches a visualforce page. I want the visualforce page to be a different standard controller type. From what I can tell I can't do this. How would you go about doing this? Code examples would help please.

Thanks

1

1 Answers

2
votes

Either go with a JavaScript button that takes you to a Visualforce page or you'll need to have a Visualforce page that extends Case which immediately redirects you to a non-case Visualforce page. Since that's ugly and unnecessary, just make a JavaScript button on your Case object (name|setup|app setup|customize|cases|buttons and links|new then select OnClick JavaScript for Content Source).

Then in JavaScript:

parent.location.href ='/apex/YourNonCaseVisualforcePage';

EDIT: Check out this tutorial for tips on sending data back from a popup to Visualforce.