Hi,
I have 3 dropdowns for users to indicate their 1st, 2nd and 3rd preference - lets say its school subjects for this example.
Each dropdown loads the same option set, with 10 options.
On selection of a subject in the 1st dropdown, say Maths, that subject should be removed from the 2nd and 3rd dropdowns. Selecting English in the 2nd dropdown should remove it from the 3rd dropdown.
There is a :minus item function, however, it only allows 1 value. I tried to create custom state (list) to store the users selections, so that I could use :minus list, but I cant see a way to trigger a workflow when a user selects an option from a dropdown…
Is there an elegant way to achieve what I am trying to? Basically I want all subject preferences to be unique… Alternatively, I could just validate the selections when the user submits the form, and return an error e.g. “You cannot select a subject more than once”