disable option

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

Did you find this page helpful?