Ivan
Ivan
FFilament
Created by Ivan on 10/8/2023 in #❓┊help
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')
1 replies