F
Filament11mo 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
LeandroFerreira11mo ago
what is the output?
Stevemo
Stevemo11mo ago
Nothing it appears that the mutateFormDataUsing is not being triggered
LeandroFerreira
LeandroFerreira11mo ago
Is there CreateAction in emptyStateActions function?
Stevemo
Stevemo11mo ago
No, does it matter?
LeandroFerreira
LeandroFerreira11mo ago
yep Can you share the whole code please?
Stevemo
Stevemo11mo 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
More Posts
Any Laravel Events triggered when a Form is shown or Modal is opened when using FormBuilder/ActionsI am using the standalone Formbuilder and Standalone actions, are there any events triggered when thpermissionsCan I access permission using artisan command ? because this is not working protected static functiDisable relationmanager tabsI have 2 relation managers under my EditRecord page. How can i disable the tabs? I just want them lSelectFilter on NavBarHello, I wonder if is possible to put a SelectFilter in the top navigation bar to filter table resulafter create functionHi. How is called the fn that allows you to trigger an event after create a record?unknown error when trying to access livewire dataI do this to access the livewire property and it throughts that error. any ideas? https://flareapp.iHow could I add the options to a Select, when the options are inside the relationship in a json coluHello, how could I assign the options depending on the selected form but the options would be insideHow can I assign the options to a Select, when the options are inside a json?Hello, how could I assign the options depending on the selected form but the options would be insideSelect Component inside helper class is not updatedI have a Select Component for a Form that is inside a helper class. This Select Component is dependihow to use infoList & form, table together on a filament page?I look at the filament demo codebase but the examples there are all resource based, i like to have a