© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
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 */
})
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

disableOptionWhen in Select
FilamentFFilament / ❓┊help
2y ago
With disableOptionWhen disable all other option
FilamentFFilament / ❓┊help
3y ago
Force refresh a Select to update disableOptionWhen()?
FilamentFFilament / ❓┊help
2y ago
Select disableOptionWhen() not working when using searchable()
FilamentFFilament / ❓┊help
3y ago