© 2026 Hedgehog Software, LLC

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

AttachAction: change the label in the select

Hi, there is a way to edit the label of the option in the attacaction's select? I try like that:

 Tables\Actions\AttachAction::make()
                    ->recordSelect(
                        fn (Select $select) => $select
                            ->placeholder('Seleziona un team')
                            ->getOptionLabelFromRecordUsing(fn (Model $record) => "Example")
                    )
                    ->preloadRecordSelect(),
 Tables\Actions\AttachAction::make()
                    ->recordSelect(
                        fn (Select $select) => $select
                            ->placeholder('Seleziona un team')
                            ->getOptionLabelFromRecordUsing(fn (Model $record) => "Example")
                    )
                    ->preloadRecordSelect(),
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

AttachAction select contains no label
FilamentFFilament / ❓┊help
11mo ago
dependent select in AttachAction syntax?
FilamentFFilament / ❓┊help
3y ago
Modifying the option label in Select
FilamentFFilament / ❓┊help
3y ago
AttachAction select different relationship?
FilamentFFilament / ❓┊help
2y ago