function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Maverick123Maverick123 

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.

Thanks,
Maverick
SamReadySamReady
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.

http://www.salesforce.com/us/developer/docs/pages/Content/pages_comp_cust.htm