8 – prevent the web form from reloading the page when sending


I have a web form block that is displayed in a custom mode,

enter the description of the image here

Is it possible to send the form without updating the page, followed by a message that says the web form has been sent correctly? I have set up ajax for this, but as you can see all the options, first reload the page and then display a message instead of form. I tried all the options but nobody is working due to custom modal.

enter the description of the image here

Any ideas to prevent the page from being updated in the web form submission?