© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
10 replies
NoxyArg

Action form how send data ?

Hello this is my problem, i try to send the select data to the action but in the dd() show like id of array not the id of the article selected some ideas ?

Tables\Actions\Action::make('pdf_2')             
                    ->form([
                        Forms\Components\Section::make()
                            ->schema([
                                Forms\Components\Select::make('kits')                          
                                    ->options( 
                                        function ($record) { 
                                           return InvoiceItem::where('order_id', $record->id)->pluck('article_id');                                           }
                                    ),
                            ]),
                    ])
                    ->action(function (Order $record, array $data) {
                        $kit = $data['kits'];
                        dd($kit);                                 
                    }),
Tables\Actions\Action::make('pdf_2')             
                    ->form([
                        Forms\Components\Section::make()
                            ->schema([
                                Forms\Components\Select::make('kits')                          
                                    ->options( 
                                        function ($record) { 
                                           return InvoiceItem::where('order_id', $record->id)->pluck('article_id');                                           }
                                    ),
                            ]),
                    ])
                    ->action(function (Order $record, array $data) {
                        $kit = $data['kits'];
                        dd($kit);                                 
                    }),
SPOILER_image.png
SPOILER_image.png
Solution
pluck('article_id', 'article_id')
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

Persist Action Form Data
FilamentFFilament / ❓┊help
3y ago
Infolist - send data to Action
FilamentFFilament / ❓┊help
3y ago
Header Action use form data
FilamentFFilament / ❓┊help
2y ago
get form data from action
FilamentFFilament / ❓┊help
3y ago