© 2026 Hedgehog Software, LLC

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

Select menu. Enum. How set default-selected

I got a field in DB and model, which is an enum type. Something like this:
['xxx', 'yyy', 'zzz']
['xxx', 'yyy', 'zzz']

In filament, I did:
        return $form
            ->schema([
                Forms\Components\Select::make('stage')
                    ->options(['xxx', 'yyy', 'zzz'])
                    ->default('stage')
                    ->disablePlaceholderSelection()
        return $form
            ->schema([
                Forms\Components\Select::make('stage')
                    ->options(['xxx', 'yyy', 'zzz'])
                    ->default('stage')
                    ->disablePlaceholderSelection()

In the DB, the field
stage
stage
is already set to
yyy
yyy
. But the menu still displays
xxx
xxx
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

Default select not being selected
FilamentFFilament / ❓┊help
3y ago
How to set Select Filter Default
FilamentFFilament / ❓┊help
2y ago
Filter enum value from select enum options (get all enum values but selected ones)
FilamentFFilament / ❓┊help
2y ago
set default value for select
FilamentFFilament / ❓┊help
3y ago