© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
3 replies
ScareCrow

BulkAction not getting data from modal submit

I have a table of facture, my bulk action should open a modal displaying a table where user can select for each $row which one of the associated files whants to download.

                BulkAction::make('Descargar Documentos')
                    ->icon('heroicon-m-arrow-down')
                    ->action(function ($records, array $data){ 
                        //Code for navigate modal response and create zip file
                    })
                    ->modalContent(function ($records) {
                        return new HtmlString(
                            Blade::render('livewire.balance.download-documents-table', [
                                'records' => $records,
                            ])
                        );
                    })
                    ->modalHeading('Descargar documentos')
                    ->modalSubmitActionLabel('OK')
                    ->modalCancelActionLabel('Cancelar'),
                BulkAction::make('Descargar Documentos')
                    ->icon('heroicon-m-arrow-down')
                    ->action(function ($records, array $data){ 
                        //Code for navigate modal response and create zip file
                    })
                    ->modalContent(function ($records) {
                        return new HtmlString(
                            Blade::render('livewire.balance.download-documents-table', [
                                'records' => $records,
                            ])
                        );
                    })
                    ->modalHeading('Descargar documentos')
                    ->modalSubmitActionLabel('OK')
                    ->modalCancelActionLabel('Cancelar'),

How can I access the downloadForm data in the action to create the zip. Thanks in advance.
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

BulkAction modal width not changeable
FilamentFFilament / ❓┊help
2y ago
Infolist in BulkAction Modal
FilamentFFilament / ❓┊help
13mo ago
Retrieving form data from a BulkAction
FilamentFFilament / ❓┊help
3y ago
Prevent Modal from closing on submit.
FilamentFFilament / ❓┊help
8mo ago