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
EPSWDEVEPSWDEV 

PageReference to previous page.

I know I can construct a page reference to a objects detail page. however how do I construct the page reference to a previous page. Essentially I am trying to implement a cancel button that when its clicked, the custom controller would pass a page reference to the previous page. if I use the standard cancel functionality (not implement cancel method in the custom controller) it gives me an error to fill out one of the required fields on the page.

Thanks

PS: I know I can just use javascript --> history.back() but want to know if there is a way to do this by page reference, plus not sure is history.back() brings a cached page.




Message Edited by EPSWDEV on 01-09-2009 08:57 AM