Multiselect - allow to create option

How do I bind/ what do I need to create, so that I can use “allow to create option” in multiselect? I am using multiselect option and under options I bind collection data with options to select. I would like an extra option, button, where user can add it’s own option (“allow to create option”). This extra option, should work like a button, where on click, user opens a modal, where he can specify it’s new option name, description…

Hi @tcc!

You’re actually really close! I would solve this challenge like this:

  1. Create a new array variable.
  2. In the multi-select options field, map it to the following formula:
merge( YOUR_COLLECTION_ARRAY , ARRAY_VARIABLE )
  1. Then in the modal, add a form with the field where the users will write their new options.
  2. On form submit, use the action “Change variable value”, select the array variable to be “add to the end” and the value would be the text in the field.

Now it should work! You can take a step further by automatically selecting that new value and also saving them as future options from the collection.

Hope this helped you! :wave: