relation manager customizing data before saving not working!

trying to modify data before saving a new record in the relation manager but normal lifecycle hook are not being called. ->headerActions([ Tables\Actions\CreateAction::make() ->mutateFormDataUsing(function (array $data) { dd($data); }), ])
Solution:
can you try adding in emptystateActions.
Jump to solution
7 Replies
Solution
singhbaba74_36345
can you try adding in emptystateActions.
LeandroFerreira
what is the output?
Stevemo
StevemoOP2y ago
Nothing it appears that the mutateFormDataUsing is not being triggered
LeandroFerreira
Is there CreateAction in emptyStateActions function?
Stevemo
StevemoOP2y ago
No, does it matter?
LeandroFerreira
yep Can you share the whole code please?
Stevemo
StevemoOP2y ago
Just tried adding the createAction in empty state and it is working now... Don't understand why . Thanks for the help

Did you find this page helpful?