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

    Why some urls in the embed code starts with slashes than http?

    Asked by dmayhan on October 15, 2015 at 03:50 PM

    It is using the wrong prefix for url commands. For example:

    The code at the top of my NEW forms now read:

    <script src="//d2g9qbzl5h49rh.cloudfront.net/static/prototype.forms.js" type="text/javascript"></script>
    <script src="//d2g9qbzl5h49rh.cloudfront.net/static/jotform.forms.js?3.3.9418" type="text/javascript"></script>

    When they should read:

    <script src="http://d2g9qbzl5h49rh.cloudfront.net/static/prototype.forms.js" type="text/javascript"></script>
    <script src="http://d2g9qbzl5h49rh.cloudfront.net/static/jotform.forms.js?3.3.9418" type="text/javascript"></script>


    Forms don't work from my website without the change. This url error is common throughout the embed code.

    Page URL:

  • Profile Image
    JotForm Support

    Answered by Kiran on October 15, 2015 at 06:46 PM

    These urls that start with two slashes are called as protocol relative urls. They point to the address keeping the current protocol (http or https). Generally these urls are used when we have mixed content using http and https on the same webpage.

    Since you have embedded the form on your webpage using source code, there might be a conflict with other scripts on your webpage. Please try embedding using iframe method and see if that works for you.

    Let us know if the issue still persists. We will be happy to help.

  • Profile Image

    Answered by dmayhan on October 15, 2015 at 09:19 PM

    Thanks for the quick response. Yep, got that, since these forms no longer work locally in our test environment. Looks like we'll just have to start publishing to the web host for testing. However, in order to facilitate payment processing directly to our client's payment gateway, we need to run a script at the time of form post.

    After publishing the test form so that the protocol relative URLs work, it appears that there is no longer any field checking going on- e.g., "did the registrant enter his/her name?"

    I'm wondering if we can still use the same JavaScript command for submitting forms, as we also need to save a cookie during post:

       document.getElementById("[jotform ID, e.g., 52865861178900]").submit();

    Here, we are using Jotform's form ID as the form object. What do you recommend?




  • Profile Image
    JotForm Support

    Answered by Chriistian on October 16, 2015 at 04:36 AM



    You can try the Post Submission Data on Thank You page. You can create a custom URL Thank you page where you will process the scripts needed on your page. You can check this article for more information:

    How to send Submissions to Your MySQL Database Using PHP

    How to Post Submission Data to Thank You Page


    Do let us know if you need further assistance.

  • Profile Image

    Answered by dmayhan on October 16, 2015 at 12:02 PM

    Thanks- didn't know about this feature! We'll look into it.

  • Profile Image
    JotForm Support

    Answered by Kiran on October 16, 2015 at 12:24 PM

    Please give a try with Thank you page and let us know if you need any further assistance. We will be happy to help.

    Thank you for using JotForm!