© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
10 replies
Soundmit

Dependant select in modal form

hi have my main form, from here i have 2 selects one for Brand and one for Item
when i select the Brand (for example Roland) i have the Item select populated with all the Roland instruments
but i can also create new Instrument from here.

A modal form is opened and i create the instrument

Now the difficult part
I want this behaviour
- select the brand in the main form (ok)
- open the modal for creating a new instrument (ok)
- here i have this fields: name, model, BRAND, type

BRAND should be pre-populated with the brand selected in the main form

The code (attached)
```
message.txt8.4KB
Solution
 ->default(fn ($livewire) => $livewire->data['brand_id']) 
 ->default(fn ($livewire) => $livewire->data['brand_id']) 
Jump to solution
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

Dependant Select
FilamentFFilament / ❓┊help
3y ago
Form select createOptionForm modal width
FilamentFFilament / ❓┊help
3y ago
Select dependant from TextInput
FilamentFFilament / ❓┊help
3y ago
Dependant select options using QueryBuilder
FilamentFFilament / ❓┊help
2y ago