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

Controlling the Return URL (retURL)

I have a VisualForce page with many different rendering options based on different vars being set.  One of the pages (if step=2) will display a Lead object.  But on that page if the user clicks any of the buttons, the Return URL is set to the generic name of the VisualForce page.  Is there any easy way to override the Return URL for all buttons on the page?  I've seen examples where you can override a single button's retURL but I'm looking for a more global option.





Are you talking about standard buttons, or commandButtons on a visualforce page ?






The Standard buttons, all of them.  I'd need the return URL to pass a static paramater back to the VF page.


ie, current retURL:




and the reURL I want to be able to define:



anyone have an answer to this issue?