F
Filament16mo ago
Stevemo

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
LeandroFerreira16mo ago
what is the output?
Stevemo
StevemoOP16mo ago
Nothing it appears that the mutateFormDataUsing is not being triggered
LeandroFerreira
LeandroFerreira16mo ago
Is there CreateAction in emptyStateActions function?
Stevemo
StevemoOP16mo ago
No, does it matter?
LeandroFerreira
LeandroFerreira16mo ago
yep Can you share the whole code please?
Stevemo
StevemoOP16mo ago
Just tried adding the createAction in empty state and it is working now... Don't understand why . Thanks for the help
Want results from more Discord servers?
Add your server