Triggering Filament Action from Livewire Form Submission
I am facing an issue with triggering a Filament action from a Livewire form submission. I have created a Filament page that contains a custom Livewire form. The desired behavior is that when I submit the form, a Filament action should be triggered, and a confirmation modal should pop up. However, I am currently experiencing a problem where nothing happens when I try to submit the form.
5 Replies
This is the view where the form is located
I don't think you can return an Action object from your submit method.
Maybe you could use an action in your form directly, instead of the submit button
The action could use
->requiresConfirmation()
to show a modal, then process the form submissionThank you. I have tried it and now it works.
Quick question: is it possible to use
->successRedirectUrl()
and ->succesNotification()
in the Action:: ? Coz I have tried but nothing is happening even though the data is savedI'm not sure, but I think you can return a redirect from an action, like this:
You can also trigger a custom notification from the action.
It worked. Thank you!