How to filter Repeating group using checkboxs and Option Sets

I have a repeating group that users can upload information to and
add tags to the item. The tags are based on an option set.

I would like to set up a checkbox filter element that allows me to show items in the repeating group based on if they box is checked/unchecked.

I know that I need to create a custom state for when the checkbox is checked/unchecked but I am not sure how to set up the repeating group to respond to the change when a user is trying to filter information.

Any tips would be great!

Hi,

In this case to filter your RG you must use advanced filter.
In your RG data source: Search:filtered
In the :filtered tab:

  • use intersection: group Filter’s show age intersect with this reference info’s relevant ages :count > 0 or group Filter’s show age :count is 0

And it works everytime you need to search in a list of items in your custom states.

But caution advanced filtering slow down your search and is consuming (much) more Workloaad units.
One way to avoid advanced filtering when needed is to use Algolia. That makes search x10 times faster and less WU consuming.

Hope this help :slight_smile:

Hi,

It worked :slight_smile: Thanks so much for your insight and for laying it out so clearly. I really appreciate it.

Cheers