F
Filament15mo ago
saeed

disable option

in select field i want to disable some options based on condition, how i can impilment this senario
2 Replies
Patrick Boivin
Patrick Boivin15mo ago
I think this should work
->disableOptionWhen(function ($label, $value) {
// return true or false
})
->disableOptionWhen(function ($label, $value) {
// return true or false
})
matin rajabi
matin rajabi4mo ago
how can i say that if the status is 4 disable option1 else disable option2?
Want results from more Discord servers?
Add your server