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
Chetna AgrawalChetna Agrawal 

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

Hello,
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.