Hi!
It’s possible to use a repeater to hold the checkboxes, but it’s not possible to dynamically add a category (during runtime), because the filter must be aware of every possible value. (If you look at the filter in the facets-filter example, you’ll see why.)
Also, since there is no way to query which checkboxes are checked in a repeater from a filter, you’ll need to take a different tact. Assuming it’s cool to not dynamically add categories, here’s how you can use the facet filters method when the checkboxes are in a repeater. (I updated your example.)
Here, I’m updating a text label with each selected item in the repeater, using the listener method, and then querying that value in the filter. Aside from that, everything is the same as in the facet filters post that you mentioned.
I’m not sure what you plan to do with the “All” checkbox; I’m just showing all rows if none of the checkboxes is checked and am ignoring “All” if it’s checked.
Note that the function value.indexOf(string) returns the starting location of string inside of the value, so ‘abcd’.indexOf(‘a’) is 0, ‘abcd’.indexOf(‘b’) is 1, and ‘abcd’.indexOf(‘z’) is -1 (meaning not found). So if indexOf(string) is 0 or greater, you know that value contains string.
Preview
File: multiselect-filter_v2.rp (193.9 KB)