Input Multiselect - Limit choices

Hi Everyone,

I was wondering if there was a way to limit the choices in the Input Multiselect. I want users to choose 3-5 predefined decisions from a list of 10.

is this possible without code? or Low code?

I think you have 2 options :

  1. Bind the disabled property to multiselect->value->length >= 5 so the multiselect will be disabled and you will not be able to add more item but still able to remove items

  1. Add a workflow onchange that will remove the last item if the length is greater than 5.

I recommand the second one, as the first one will change the style of your element to show up as disabled, and besause the second one is more future proof, I’m not sure it was intended you still can remove item from multiselect when disabled, may a bug fix change this behavior later.

Awesome, thank you