Filtering a list from buttons with custom state

Soo, im new to bubble and what a tool! It’s great, but also tricky for a noob like me i guess :slight_smile:

I created 8 buttons that when clicked stores a text in repeating group nr. 1 in a custom state list.

In my repeating group nr.2 i want to display the criteria of the stored content in the custom state list.

Example: Food button is clicked → list shows all with food → Drink button and food button is clicked → list shows all lists with food and drink → Drink, Food and Candy button is clicked → list shows all with drink, good and candy, etc. Also viseversa

What im doing: is that data source is set to search for food:filtered and constraint is Food is in repeating group nr. 1’s custom state list. (same goes for drink and candy)

when i click button: food, nothing happens.

when i click button: food and drink, nothing happens.

when i click button: food, drink and candy → results appear in list.

But i want to have Individual results and combined results.

Anyone got an idea of what im doing wrong? - been on the forums for 2 days now and i can’t figure it out :frowning:

If you are having issues with an app, the best way to get help is to post a link to a public app, so people can see what is happening.

I just want my repeating group to show the criteria that is in the custom state.

Button Food is clicked -> “Food” is stored in custom state -> Repeating group shows what matches food in database.

I tried https://buildingonbubble.com/block/a-list-with-multiple-selections-1472220949220x795693731957964800 But no luck.

I read some where that :plusitem might work, i just can’t seem to make it work.