© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
atabegruslan

1 Select input depends on another Select input's value. Select's options populated by DB table's col

Currently I got this
return $form
    ->schema([

        Forms\Components\Select::make('model')
        Forms\Components\Select::make('model_id')
return $form
    ->schema([

        Forms\Components\Select::make('model')
        Forms\Components\Select::make('model_id')

Model is a select menu, it can be Aaa or Bbb.
Model_id is also a select menu,

How can you achieve the below:

If Model is selected to have a value of Aaa,
then Model_id's options will be:
1: aaa1
2: aaa2
1: aaa1
2: aaa2

1:aaa1
1:aaa1
and
2:aaa2
2:aaa2
are read from DB table
aaas
aaas
's
id
id
and
name
name
columns.
If Model is selected to have a value of Bbb,
then Model_id's options will be:
1: bbb1
2: bbb2
1: bbb1
2: bbb2

1:bbb1
1:bbb1
and
2:bbb2
2:bbb2
are read from DB table
bbbs
bbbs
's
id
id
and
name
name
columns.
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

Hide Select Dropdown depends on the Select Dropdown value?
FilamentFFilament / ❓┊help
2y ago
Select Input populated via db query and setting default option?
FilamentFFilament / ❓┊help
3y ago
Select Option Disabled Based on Another Field's Value
FilamentFFilament / ❓┊help
12mo ago
Disable select by evaluating if another input value is null or not
FilamentFFilament / ❓┊help
2y ago