© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
alexanderkroneis

Conditional Select Field

Hi, a couple Select fields should be populated and/or disabled based on other fields in my application.

E.g. I only want to display rooms, which does not have been associated to a season yet.

Select::make('seasons')
  ...
  ->live(),

Select::make('rooms')
  ...
  ->options(fn (Contract $record, Get $get) => $record->rooms()->whereDoesntHave(...))
Select::make('seasons')
  ...
  ->live(),

Select::make('rooms')
  ...
  ->options(fn (Contract $record, Get $get) => $record->rooms()->whereDoesntHave(...))


The select field is not repopulated, any ideas?
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

Conditional Select options don`t work if disabled field
FilamentFFilament / ❓┊help
3y ago
select field
FilamentFFilament / ❓┊help
3y ago
Conditional Fields
FilamentFFilament / ❓┊help
2y ago
Multi field FieldComponent
FilamentFFilament / ❓┊help
2y ago