Reset the form and don't close the modal
In the documentation (https://filamentphp.com/docs/3.x/actions/modals#adding-an-extra-modal-action-button-to-the-footer) if I want to add a footer action to a modal that works like the "create and create another", I can create an action and add an argument to check for that, but in that argument it just sais a comment
// Reset the form and don't close the modal
. How do I do that? how can I prevent the modal from closing? Or atleast have it reopen with a blank form?2 Replies
Solution
maybe
$action->halt()
?Yes! π that was perfect! Thank you!