Nested actions can read and fill parent form data safely

Nested actions can read and fill parent form data safely

  • form
  • action
PR #20502 by @webard

A nested action can validate and read its parent's form data without submitting it, and can write values back into the parent form. File uploads aren't dehydrated as a side effect of that read.

Get the parent action instance by injecting $parentAction into action() or mountUsing() of the nested action:

->extraModalFooterActions([
    Action::make('second')
        ->action(function (Action $parentAction) {
            dd($parentAction->getRawData());
        }),
])
All Filament Up To Date tips