I'm using django, and have a static webpage with a GET form, and about 30 checkboxes. The user selects various boxes, and clicks search, and a result from a database is returned to the same page in a table. However, all the checkboxes have been cleared, since HTML is stateless.
What's the simplest solution to 'remember' the state of the checkboxes? I've looked through django docs, but the examples just use a variable and an IF for a single text form. Surely, I dont have to check if each checkbox is set in the querydict? Also, my form was custom created, rather than using django forms.
Eventually, i was planning to use JSON for the page and only update the table, and that would solve this problem, but Im not sure if it would introduce many more, eg back button not working for previous searches.