Reset custom table header action modal form
Hi, I have a table header action with a form on a modal that works great. I recently wanted to add a "add and create another" submit button to the modal since I found myself saving and adding again alot.
This is my table header action button placed in the
->headerActions()
of the table.
I followed the instructions on how to add button, but how can I reset the form? You can see in the action that I tried many options, but none are working.
`
Anyone experienced this and have solved it? π
Thank you for your help!1 Reply
Solution
Inject
Form $form
and use $form->fill();