To reduce elements in select by previous selections

1
0
-1

Hi,

controlli.png
I have a container formInput.contract.controlli. controlli is an array.
The select widget value is: $item.
The select widget available values is: controllos (Rest/Json) ['Pippo','Pluto','Paperino','Linux'].

When I add a new select widget with button add, I want that the number of element is reduced by previous selections.

Example:
1° select ['Pippo','Pluto','Paperino','Linux'] - I select 'Pluto' - I add another select
2° select ['Pippo','Paperino','Linux'] - I select 'Pippo' - I add another select
3° select ['Paperino','Linux'] - I select 'Linux' - I add another select
4° select ['Paperino'] - I select 'Paperino' - Now It Is not possible to add another select because there are not elements.

How can I do?

Thanks
Manolo

1 answer

1
0
-1

Hi Manolo,

I have the same your issue.

Did you find a good solution for problem above?

Thank you for all.

Best regards.
Danilo

Notifications