© 2026 Hedgehog Software, LLC

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

How to change SelectFilter indicator

How can I change select filter indicator on table, I am aware that I can transform this whole thing to custom but this below code is working to achieve what I want, I just need to change the indicator (display name instead of id)
Tables\Filters\SelectFilter::make('album_id')
    ->label(__('Album Name'))
    ->relationship('album', 'id', fn (Builder $query) => $query->active())
    ->getOptionLabelFromRecordUsing(fn (Model $record) => $record->name->value)
Tables\Filters\SelectFilter::make('album_id')
    ->label(__('Album Name'))
    ->relationship('album', 'id', fn (Builder $query) => $query->active())
    ->getOptionLabelFromRecordUsing(fn (Model $record) => $record->name->value)

Thanks in advance
Screenshot_from_2024-01-26_16-16-11.png
Solution
I've check the source code and it's not possible, so change my logic to custom filter
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

how to change selectfilter options based on another selectfilter?
FilamentFFilament / ❓┊help
3mo ago
Wrong indicator in SelectFilter with multiple and translatable
FilamentFFilament / ❓┊help
3y ago
Loading indicator on record change
FilamentFFilament / ❓┊help
16mo ago
Call a function after change SelectFilter
FilamentFFilament / ❓┊help
16mo ago