Build an Array to filter a collection list from buttons

Hi! I’m working on an alternate filtering solution for the multi-select dropdown and am thinking/trying to use buttons to add different id’s to my filter.


Care Transformation Studio | WeWeb - 30 May 2024 - Watch Video

I’m stuck on creating the actual array (and most likely then applying it to the collection displayed in the video.)

Any help would be so great - I’m just stuck here.

You can create the array as a variable and then on each button you could add a workflow that appends/removes an item via the change variable action.

1 Like

Thanks! I’m working on that now - just trying to figure out the formatting for the array. I’ll keep going and share if I can’t get it figured out. Appreciate the note :slight_smile:

Hi @Broberto I have the same problem, I managed to add the selected item to the array but I don’t know how to remove it from the array when I click on it again.

Do you have any tips?

You could do something like a Change variableRemove at index → set the index to [your_array_reference].indexOf(your_current_item_present_in_the_array_reference)

1 Like

nice thank you

1 Like