I have a search page that uses expandable/collapsible sections to display the search criteria. If the section is displayed, the user wants to use it in the search. If it is collapsed it is not in the search. I have a hidden field in each section describing whether it is expanded or collapsed. It works very well.
The problem I have is if you do a search and then click back. All the sections are collapsed (as they are at the beginning) but the hidden fields are still set to the users previous search criteria. They are out of sync.
Does anyone have a suggestion for how to keep things in sync?