+ Start a Discussion

Detail Page button on Visualforce page

Hi Guys,

I have a requirement where i am building a visualforce page and would like to have an already existing detail page button on it. I am not sure if it is possible. If yes, please let me know..

The reason i would like to do it this way is, this button is a 'OnClick Javascript' button, that has some url's that are fetched based on instance of the sandbox and i dont want to do the maintenance thing on multiple places. Kindly advice.

You could make a custom Visualforce component and include it in both places. This way you would only need to maintain the component in one place.