Modal form for url action on panel
Is there any way I could open a modal before opening a url from an action? I want to open a custom form, and then use data from the form as a parameter on the url. This doesn't work at all, the url is simply opened. I would like to replace "cash" in the url with the value selected in the form.
2 Replies
You can override the default modalSubmitAction with a url action button and should be able to access formdata un url function as "array $data"
https://filamentphp.com/docs/3.x/actions/modals#customizing-the-action-buttons-in-the-footer-of-the-modal
https://filamentphp.com/docs/3.x/actions/modals#customizing-the-action-buttons-in-the-footer-of-the-modal
Thanks, I will give it a try.