You need to sign in to do that
Don't have an account?
dan.granger.ddw
Add Back To Lists to Visualforce Page
We have an override on the View for an object with a Visualforce page. We would like to be able to add a button that returns them to the prior page. Something like the back to lists on standard pages. On a VF page under edit or new you get the retUrl and can reference it but that is not available on the view pages.
Is there a way to add the Back functionality to a VF page when doing a view override?
Is there a way to add the Back functionality to a VF page when doing a view override?
bob_buzzard
If you can't guarantee the prior page will pass you a parameter indicating where the request came from, you could look at using the window.history object - this has a back method that is the same as the user clicking the 'back' button on the browser. This probably isn't a silver bullet though - if the previous page was a form submission the browser will ask for confirmation for example.