© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
Sjoerd24

extraModalFooterActions, retrieving post $data?

I have a system to make schedules, schedules can be recurring. I want to have an extra FooterAction to "Save all future recurring schedules" instead of just the current one. Got that all to work with this (https://filamentphp.com/docs/3.x/actions/modals#adding-an-extra-modal-action-button-to-the-footer) But the problem is I cant add a requireConfirmation() to it then. That works with this perfectly BUT i can't retrieve the form $data (because it is a child?) Is there any method to fix this?

My code:

return Actions\EditAction::make()
            ->modalHeading(__('Edit shift'))
            ->form(ScheduleResource::getFormSchema())
            ->modalSubmitActionLabel(__('Edit only this shift'))
            ->extraModalFooterActions([
                Action::make('editAll')
                    ->label(__('Edit all future shifts'))
                    ->requiresConfirmation()
                    ->action(function (Schedule $record, array $data) {
                        dd($data);
                        // returns null :(
                    })
                ,
                Action::make('delete')
                    ->hiddenLabel()
                    ->icon('heroicon-s-trash')
                    ->color('danger')
                    ->requiresConfirmation()
                    ->tooltip(__('Delete this shift'))
                    ->cancelParentActions()
                    ->action(function (Schedule $record) {
                        $record->delete();
                        $this->refreshRecords();
                    }),
return Actions\EditAction::make()
            ->modalHeading(__('Edit shift'))
            ->form(ScheduleResource::getFormSchema())
            ->modalSubmitActionLabel(__('Edit only this shift'))
            ->extraModalFooterActions([
                Action::make('editAll')
                    ->label(__('Edit all future shifts'))
                    ->requiresConfirmation()
                    ->action(function (Schedule $record, array $data) {
                        dd($data);
                        // returns null :(
                    })
                ,
                Action::make('delete')
                    ->hiddenLabel()
                    ->icon('heroicon-s-trash')
                    ->color('danger')
                    ->requiresConfirmation()
                    ->tooltip(__('Delete this shift'))
                    ->cancelParentActions()
                    ->action(function (Schedule $record) {
                        $record->delete();
                        $this->refreshRecords();
                    }),


I feel like maybe this could help (how to get data in action child from action parent?) but maybe I am missing something obivous?
Modals - Actions - Filament
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

extraModalFooterActions
FilamentFFilament / ❓┊help
10mo ago
extraModalFooterActions -> Select
FilamentFFilament / ❓┊help
15mo ago
extraModalFooterActions not working
FilamentFFilament / ❓┊help
12mo ago
Retrieving form data from a BulkAction
FilamentFFilament / ❓┊help
3y ago