F
Filament9mo ago
Luiz

disableOptionWhen

In the Relation Manager form I am using a Select. However, I want to disable the option that has already been used.
->disableOptionWhen(function (string $value) {
/* CHECK IF $VALUE ALREADY EXISTS WITH SAME PRODUCT_ID */
/* IF TRUE, DISABLE OPTION */
})
->disableOptionWhen(function (string $value) {
/* CHECK IF $VALUE ALREADY EXISTS WITH SAME PRODUCT_ID */
/* IF TRUE, DISABLE OPTION */
})
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server