Issue with Multi select Button workflow, help!

Hi there,
I am trying to create a popup with multiselect tags, I am having troubles setting up the variable what would be the best approach to set up the workflow and have an array with the value selected/no selected?



I have tried to use the dropdown component as well as an alternative even though I don’t really like the look of it, but seems like it doesn’t accept my data I have multiple outputs from my xano api endpoint:
image

Could you help? Thank you so much @Alexis would you have an idea about the flow?

  1. Create an array containing the selected value
  2. On click execute a workflow
    a. if the value is already inside then remove it

    b. if the value is not there add it
  3. For each tags apply a different color if the value is present in the variable

Thank you it did work, I didn’t get the findIndex right!