© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
Thigah Alattass

Dependent select input

I need feature_id dropdown to be populated depending on test_type value
but $get('test_type') is giving me null

->schema([
Forms\Components\Group::make()
->schema([
Forms\Components\Card::make()
->schema([
Card::make()->schema([
TextInput::make('name')->required(),
]),
Select::make('test_type')
->required()
->options([
'auto-test' => 'Auto Test',
'stress-test' => 'Stress Test',
])
->reactive(),
//->afterStateUpdated(function(callable $set){$set('feature_id',null);

// }),
Forms\Components\MarkdownEditor::make('notes')
->columnSpan('full'),
Forms\Components\Select::make('status')
->default('pending')
->options([
'pending' => 'Pending',
'processing' => 'Processing',
'completed' => 'Completed',
'failed' => 'Failed',
'has error' => 'Has Error',
])
->hiddenOn('create'),])
->columns(2),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

dependent select filter
FilamentFFilament / ❓┊help
2y ago
Dependent select searchable
FilamentFFilament / ❓┊help
3y ago
Disable dependent select
FilamentFFilament / ❓┊help
3y ago
Persisting custom select field for dependent select.
FilamentFFilament / ❓┊help
3y ago