+ Start a Discussion
Chetna AgrawalChetna Agrawal 

Call vf page on click of button on dynamic object's detail page

I have a button on deatail page of all the objects and my vf page requires id of the current object.
so on button i have put URL of vf page like: https://c.ap2.visual.force.com/apex/PhotoUploader?id={!Account.Id}.
this is hardcoded i want this happen dynamically.
SonamSonam (Salesforce Developers) 
This is ideally the correct way of passing the parameter value such that the VF page can then use the ID from the URL:https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_query_params_getting.htm

Its value is dynamic  as it keeps changing with the ID on the page..can you please elaborate on how it is currently non dynamic.