What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Display thank you message without reloading on source code embedded form

    Asked by ralfredo on March 28, 2017 at 11:21 AM

    I have just put the source code on my page. The javascript conflicts on my website so I need to do my own.

     

    Is there a way to take over the form submission like the following which is more efficient? I am making the action go to the iframe so that the page does not have to reload. Is there a better way to handle the form on the page?

     

     

    <iframe src="" id="contestframe"name="contestframe"></iframe>

    <form class="jotform-form" action="https://submit.jotform.us/submit/70804068597162/" method="post" name="form_70804068597162" id="70804068597162" accept-charset="utf-8"  onsubmit="contestSubmit();return false; "> 

     

    function contestSubmit() {

        if($('#input_3').val() == ''){

          ga('send', 'event', 'SVS Popup', 'Click', 'Please fill in Email Address');

          alert('Please enter your email address');

        }

        else {

          jQuery('.modal-top').css("display","none");

          jQuery('.modal-bottom').css("display","none");

          jQuery('.thanks').css("display","block");

          ga('send', 'event', 'SVS Popup', 'Click', 'Submission');

          $( ".jotform-form" ).submit();

        }

        return false;

      }

    Page URL:
    https://www.svsound.com/pages/test-1

  • Profile Image
    JotForm Support

    Answered by Kiran on March 28, 2017 at 02:25 PM

    I understand that you want to display the thank you page without reloading the page. As I tried to submit the form on the web page provided, I see that thank you message is displaying without any issue. However, you may take a look at the following thread with a similar issue with a solution that might help you.

    https://www.jotform.com/answers/1000462-

    Let us know if you need any further assistance. We will be happy to assist.