Hi,
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