I am trying to create a search page with a search box and a couple of filters as checkboxes. The search field populates a repeating group’s “Do Search”, and I need the checkboxes to work in the following fashion:
When checkbox1 is checked, show only results with field1=true. Otherwise show all results. Same for checkbox2 and checkbox3. In other words, add the criteria corresponding to the checkbox only when it’s checked, otherwise remove the criteria from the search.
I was able to do this on each checkbox independently in the workflow by detecting a value change and creating a new search with the criteria added, but I cannot combine all 3.
What’s the best way to go about dynamically adding/removing a search criteria that populates a repeating group?
Thanks!