© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago
delboy1978uk

AttachAction select contains no label

I have a many to many relationship with a join table of table1_id and table2_id, but in the
AttachAction
AttachAction
select dropdown there are no labels, how can I set them?
The only code I use is
Tables\Actions\AttachAction::make()
Tables\Actions\AttachAction::make()

If I change it to use a custom form, I can see my labels, but it throws an error
undefined array key recordId
undefined array key recordId
when I submit it
[
            Select::make('quality_control_step_id')
                ->multiple()
                ->preload()
                ->relationship('machineCenters.qualityControlSteps', titleAttribute: 'name')
                ->required()
        ];
[
            Select::make('quality_control_step_id')
                ->multiple()
                ->preload()
                ->relationship('machineCenters.qualityControlSteps', titleAttribute: 'name')
                ->required()
        ];


Without using my own form, it works and I can attach, but I see nothing. If I start to search, it comes back with options, but they all say
quality control step
quality control step
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

AttachAction: change the label in the select
FilamentFFilament / ❓┊help
3y ago
AttachAction custom select option labels
FilamentFFilament / ❓┊help
3y ago
AttachAction select different relationship?
FilamentFFilament / ❓┊help
2y ago
dependent select in AttachAction syntax?
FilamentFFilament / ❓┊help
3y ago