© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
1benjam1

How to customize select option label (different when open/closed)

Is there a way to have a different render for the "preview" (when the select is closed) and for when the select is open ?

Here is my code

Filament\Forms\Components\Select::make('ethnicity')
    ->label('Groupe ethnique')
    ->native(false)
    ->searchable()
    ->allowHtml()
    ->options(EthnicityEnum::class)
    ->default(EthnicityEnum::EUROPEAN_WHITE)
    ->live()
    ->required(),
Filament\Forms\Components\Select::make('ethnicity')
    ->label('Groupe ethnique')
    ->native(false)
    ->searchable()
    ->allowHtml()
    ->options(EthnicityEnum::class)
    ->default(EthnicityEnum::EUROPEAN_WHITE)
    ->live()
    ->required(),
image.png
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 customize label when selecting relationship???
FilamentFFilament / ❓┊help
2y ago
How to customize Breadcrumb label
FilamentFFilament / ❓┊help
3y ago
How to get the select option label using $get?
FilamentFFilament / ❓┊help
3y ago
Modifying the option label in Select
FilamentFFilament / ❓┊help
3y ago