Scenario: You have dynamic checkboxes (multi-select) or radio buttons on your search form and after the search is complete, you want to redisplay the search form with your choices still selected.
Issue: Normally this is easy because you just set the field's default value to [get param="
Dynamic fields in search form - display choices after search
Solution:
- In the form settings, I added two new parameters to the URL, one for the ids of the checkboxes and one for the ids of the radio box. When doing this, use the following syntax [125 show="id"] where 125 is the field id.
- In the form’s After Fields section, add this jQuery script to use those new parameters and “manually” set the checkboxes and radio buttons. Replace 125 with the ID of your radio button and 124 with the ID of your checkbox. You should also change the variable names so they make sense with your application.