FilamentF
Filament3y 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')
Was this page helpful?