© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago
Ivan

With disableOptionWhen disable all other option

Is it possible to use disableOptionWhen to disable all options when a specifc option is selected? I've trued using this on my select input with live enabled but it does not work.

->disableOptionWhen(fn (string $value, mixed $state): bool => in_array('my_value', $state, true) && $value !== 'my_value')
->disableOptionWhen(fn (string $value, mixed $state): bool => in_array('my_value', $state, true) && $value !== 'my_value')
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

disableOptionWhen
FilamentFFilament / ❓┊help
2y ago
Disable Select Filter Default "All" Option
FilamentFFilament / ❓┊help
2y ago
disable option
FilamentFFilament / ❓┊help
3y ago
disableOptionWhen in Select
FilamentFFilament / ❓┊help
2y ago