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
Roger PavelleRoger Pavelle 

How do I persist apex selections after navigation?

I have two apex pages.  The first is a search page with many checkboxes designed to limit the number of results returned from a custom object.  The second page is a detail page based on a single object selected from the search page.

When I navigate from the detail page back to the search page, all the selections that I have previously made are lost (all checkboxes are set back to "unchecked").

Is there a way to keep the boxes checked when I navigate back to the page?
Best Answer chosen by Roger Pavelle
bob_buzzardbob_buzzard
Yes, you can do this. Here's a blog that uses URL parameters to accomplish pretty much your use case:

http://bobbuzzard.blogspot.co.uk/2011/06/execute-custom-search-when-opening-page.html