© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
12 replies
Vp

select 'default' not working in filter action/forms

I am trying to filter dashboard widget using filter action/forms, I provide months options and try to set default to current month. Below is how I did
FilterAction::make()
    ->form([
        Forms\Components\Select::make('month')
            ->options([
                1 => 'January',
                2 => 'February',
                3 => 'March',
                4 => 'April',
                5 => 'May',
                ...
            ])
            ->default(now()->month)
            ->selectablePlaceholder(false),
    ]),
FilterAction::make()
    ->form([
        Forms\Components\Select::make('month')
            ->options([
                1 => 'January',
                2 => 'February',
                3 => 'March',
                4 => 'April',
                5 => 'May',
                ...
            ])
            ->default(now()->month)
            ->selectablePlaceholder(false),
    ]),

When page refresh, the select options always pointing to first item only instead of
default
default
Solution
I think this is my chrome bug for that specific project.. I've restart the system and now it always pointing to 'October' 🤣
I check in firefox and it's working fine.. so I think there is no error
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

Select Default not working
FilamentFFilament / ❓┊help
3y ago
Default select not working
FilamentFFilament / ❓┊help
3y ago
dependent select filter not working
FilamentFFilament / ❓┊help
2y ago
Default option for select filter
FilamentFFilament / ❓┊help
16mo ago