I need to create a Button for the Page Layout that links to the Visualforce Page (another page). It's for custom object. How can I do that? Can I use "Buttons, Links, and Actions" to open VF Page? Or I need to create another VF Page?

closed as off-topic by gNerb, Pranay Jaiswal, battery.cord, glls, Jayant Das Sep 21 at 20:48

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: SSCCE.org" – gNerb, Pranay Jaiswal, battery.cord, glls, Jayant Das
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    What have you tried so far? There are plenty of references you can find via google that will help you with this as well, have you attempted to utilize any of those references, if so, which ones? – gNerb Sep 20 at 15:45
  • 2
    I have voted this question down specifically because it shows an astonishing lack of research. If you edit the post to demonstrate what effort you have made to at least look around, I will remove that vote. – Adrian Larson Sep 21 at 3:49
up vote 1 down vote accepted

Yes, you can use Buttons, Links, and Actions. A Custom Button or Link with its Content Source set to Visualforce Page will work if the Standard Controller on the Visualforce Page is the same object as one the button or link is being created for. If the Visualforce Page uses a different Standard Controller, you can set Content Source to URL, and write a link to the Visualforce Page like: https://yourinstance.salesforce.com/apex/yourVisualForcePageName

Not the answer you're looking for? Browse other questions tagged or ask your own question.