Mautic Community Forums

Detect Form Submission

Hi there,



I wanna put a mautic form inside a modal in my site.



After a submission, I wanna this modal closes. There is a way to detect back in page if form is success submited?



Tks

Hi there,

I wanna put a mautic form inside a modal in my site.

After a submission, I wanna this modal closes. There is a way to detect back in page if form is success submited?

Tks

The only way I could think to do this is to use a URL query param in the success url redirect for the form submit, and then use some Javascript to watch the URL and if the the success param is passed, then close the modal. You’ll have to roll out that JS yourself to make it work.