Emit selected item on repeater items
Is there anyway to emit or remove the selected item on the next select field in the repeater field?
I want it to be so that when user selected an item and add a repeater, it excluded on the next select field. To avoid redundancy of selected items in the repeater field.
4 Replies
its quite hard
inside options() define a closure and use $get('../../repeter_name')
then loop through the options that are already selected and exclude them
make sure the selects are reactive()
I kinda get the idea, but what is this ../../??
used to get a form field value outside of a repeater from inside it
Just like directory traversing