Prevent page reload after submission

I’m working with WordPress Gravity Forms plugin. I loaded a form into a jquery dialog and I want to have the dialog to close after form submission instead of reloading the page.

However, I don’t know, if it is possible to add preventDefault() into submit() event. Or if there is an option not to reload the page in the Gravity Forms.

Read More

Please, advise me a possible way to achieve it.

Related posts

Leave a Reply

2 comments

  1. You could try targeting an invisible iframe.

    <form action="this_action.php" method="post" target="iframe">
      <input type="submit" value="Submit" />
    </form>
    
    <iframe name="iframe" style="position: absolute; visibility: hidden"></iframe>