© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2mo ago•
12 replies
Stanneman

Settings Select form component default value in relation

✅ SolvedForm builder4️⃣v4
When I'm viewing a resource and create a new item for its relation, it seems like the setted ->default('value') is not working.

I saw earlier that this will only work on creating and not on editing, but since I'm creating a new entry I figured something must be going wrong or misconfigured.

Select::make('status')
    ->options([
        'draft' => 'Draft',
        'reviewing' => 'Reviewing',
        'published' => 'Published',
    ])
    ->default('published')
    ->selectablePlaceholder(false),
Select::make('status')
    ->options([
        'draft' => 'Draft',
        'reviewing' => 'Reviewing',
        'published' => 'Published',
    ])
    ->default('published')
    ->selectablePlaceholder(false),
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

form select assign default value
FilamentFFilament / ❓┊help
3y ago
Default value with searchable in select component
FilamentFFilament / ❓┊help
3y ago
Default value for Settings page form
FilamentFFilament / ❓┊help
3y ago
Value in Select component
FilamentFFilament / ❓┊help
3y ago