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();
                    }),


I feel like maybe this could help (how to get data in action child from action parent?) but maybe I am missing something obivous?
Was this page helpful?