-
Hi, I was wondering if it was possible to use form actions with a modal form? I tried using a named action on the submit button of the form ( I'll probably revert to calling the action manually, as suggested here, but I was wondering if anyway had any insight as to what is happening? Many thanks, Mat |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Usually, we recommend to try to stay away from modals and if you do have to use them, to use them with exact paths, so If that doesn't work either, we'll need to come up with a reproduction for easier debugging. |
Beta Was this translation helpful? Give feedback.
Hi @Sarenor, thanks for the quick reply!
Oh, that's not super clear from the docs. I've used a lot of them! You'd recommend using a separate page for every form, instead?
So, after trying your recommended fix, I realised I had made a silly error. The buttons in the example form are inside the
footer
tags, which are outside of the form, so of course they didn't trigger the form actions...OLD: