© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•17mo ago•
1 reply
biebthesecond

disableOptionsWhenSelectedInSiblingRepeaterItems fails with multi-select

I have a repeater with a multi-select field, I don't want the same answers to be inputted in different repeater rows. But the method ->disableOptionsWhenSelectedInSiblingRepeaterItems() doesn't seem to work with multi-select. If I remove ->multiple() it works as it should. Am I doing something wrong?

                                        Repeater::make('second.questions')
->hiddenLabel()
->minItems(1)
->reorderable(false)
->schema([                                           TextInput::make('question')
->label(__('Question')),                                   Select::make('answers')
->label(__('Followup from answer(s)'))
->options(function (Get $get) {
return $this->   flattenAnswerArray($get('../../../first.answers'), true);
})
//->searchable()                                           ->multiple()
->disableOptionsWhenSelectedInSiblingRepeaterItems()
/->native(false),
]),
                                        Repeater::make('second.questions')
->hiddenLabel()
->minItems(1)
->reorderable(false)
->schema([                                           TextInput::make('question')
->label(__('Question')),                                   Select::make('answers')
->label(__('Followup from answer(s)'))
->options(function (Get $get) {
return $this->   flattenAnswerArray($get('../../../first.answers'), true);
})
//->searchable()                                           ->multiple()
->disableOptionsWhenSelectedInSiblingRepeaterItems()
/->native(false),
]),
image.png
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

disableOptionsWhenSelectedInSiblingRepeaterItems fails with multi-select
FilamentFFilament / ❓┊help
17mo ago
multi select
FilamentFFilament / ❓┊help
3y ago
Multi-select
FilamentFFilament / ❓┊help
3y ago
Selective Multi-tenancy
FilamentFFilament / ❓┊help
3y ago