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?
Solution:
maybe $action->halt() ?
Jump to solution
2 Replies
Solution
LeandroFerreira
LeandroFerreira3mo ago
maybe $action->halt() ?
Joachim Strand
Joachim Strand3mo ago
Yes! 🙂 that was perfect! Thank you!
Want results from more Discord servers?
Add your server
More Posts