© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
3 replies
Matt

Customize option labels in a relation manager attach action

I need to customize the option labels in a relation manager attach action.
I have tried the following
Tables\Actions\AttachAction::make()
                    ->recordSelect(function (Forms\Components\Select $select) {
                        return $select
                            ->getOptionLabelFromRecordUsing(fn ($record) => "{$record->id}. $record->name");
                    }),
Tables\Actions\AttachAction::make()
                    ->recordSelect(function (Forms\Components\Select $select) {
                        return $select
                            ->getOptionLabelFromRecordUsing(fn ($record) => "{$record->id}. $record->name");
                    }),


But that gets overwritten, still only showing the record title attribute defined in the relationship
I'm not getting any errors, it just isn't working.
Does anyone have any ideas?
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

Visible for Attach Action In Relation Manager
FilamentFFilament / ❓┊help
2y ago
Attach relation manager
FilamentFFilament / ❓┊help
3y ago
Attach Relation Manager
FilamentFFilament / ❓┊help
3y ago
Customize Select in Relation Manager
FilamentFFilament / ❓┊help
12mo ago