© 2026 Hedgehog Software, LLC

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

Relationship Manager - Custom Title Attributes?

I need to refine the title attribute for the select in the relationship manager attaching method. Any suggestions on the way to handle this? I need a few columns
Solution
Solved it, use custom attached action i.e.

                Tables\Actions\AttachAction::make()
                    ->form(fn (AttachAction $action): array => [
                    Forms\Components\Select::make('recordId')
                        ->preload()
                        ->options(fn() => \App\Models\MyModel::query()
                            ->get()
                            ->mapWithKeys(fn($item) => [$item->id => $item->title . ' - ' . $item->part])
                            ->toArray()
                        )
                ]),
                Tables\Actions\AttachAction::make()
                    ->form(fn (AttachAction $action): array => [
                    Forms\Components\Select::make('recordId')
                        ->preload()
                        ->options(fn() => \App\Models\MyModel::query()
                            ->get()
                            ->mapWithKeys(fn($item) => [$item->id => $item->title . ' - ' . $item->part])
                            ->toArray()
                        )
                ]),
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Custom page with relationship manager
FilamentFFilament / ❓┊help
12mo ago
Relationship Manager AttachAction custom form
FilamentFFilament / ❓┊help
2y ago
relationship manager
FilamentFFilament / ❓┊help
2y ago
Many relationship manager?
FilamentFFilament / ❓┊help
2y ago