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

    How to prevent the popup prematurely.

    Asked by slfattorneys on June 26, 2015 at 03:01 PM
    3. How to prevent the popup prematurely.
  • Profile Image

    Answered by Sammy on June 26, 2015 at 04:14 PM

    Considering thet you are embedding the full source code in your website, we can write javascript that validates the fields before submissions.

    Since you have few fields ill keep it simple, if no field is filled the popup wont be triggered, we will use the jquery validate plugin


    Make sure you add the required tag to the fields you want validated

    <input id="email" type="mail" name="email" required>

    submitHandler: function(form) {
    //Here is where we will cal the popup function only if the validation passes

    Use the fully qualified jquery name to prevent conflicts.

    Include the following in you html head section

    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.13.1/jquery.validate.min.js"></script>


    Kindly try the above and let me know if you need further assistance and clarification