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

How to call a page from a button on a detail page
I am new at developing VF pages and something that seems pretty basic, I can't find documentation on how to do it.
I would like to place a custom button on the detail page of an custom object record. The button would call a VF page that I create to display and edit some fields in that record. The documentation indicates that I need to append the query parameter to the page url that specifies the ID of the record.
If I define the button as a link to this url, it will always refer to the same record. I want the button to refer to the record of the detial page I am currently viewing. This implies that there must be a way to pass the record ID to the VP but I can't seem to find out how. Very frustrating.
Can anyone help? Thanks
I would like to place a custom button on the detail page of an custom object record. The button would call a VF page that I create to display and edit some fields in that record. The documentation indicates that I need to append the query parameter to the page url that specifies the ID of the record.
If I define the button as a link to this url, it will always refer to the same record. I want the button to refer to the record of the detial page I am currently viewing. This implies that there must be a way to pass the record ID to the VP but I can't seem to find out how. Very frustrating.
Can anyone help? Thanks
As I understand, you want a button that takes you to a "visualforce page" where you can edit the record created with the information that has the record
You can try this
1 Created a apex class
2 Create the visualforce page,
3 create the button and in the part of
Display Type: Button
Content Source: Visualforce Page
Content: YourVFName
Please refer to the below for the solution:
https://developer.salesforce.com/forums/?id=906F0000000MIjbIAG
Regards,
Deepthi