Process form in modular page

Hi everybody,

I’m trying to set up a contact form in a modular page and I want to either replace the with a

including the form.message or display a popup on submit to let the user know that the mail is sent successfully without redirecting to another page.
Is it possible and what is the best way to achieve this? Is it necessary to create a custom plugin for onFormProcess?

Thanks in advance.

You can intercept the form submit using JavaScript, and send the form using AJAX to the server, and when the result comes back, display the message.

This is doable but there is no example or “standard way” yet. The default is to display the message in another page.