Variables chips

Hello, maybe someone knows, I would like to make a dropdown field with a lot of checkboxes, and by ticking checkbox it should appear inside the field as a chips, how can I do this with variables?
Could it be totally independent? For ex: I tick “option1”, “option2” and “option3”, then untick option 2 and tick it again, and result should be: option1, option3, option2
Thank you un advance