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

    Page referral code does not work

    Asked by Giftsngadgets on May 23, 2012 at 06:55 PM


    I have tried to embed the script to know the URL from which page a form was completed  which i found here:



    However: if i  embed the following code below, the referrer field is not completed (stays empty) on my form mail.



    document.write("<script type="text/javascript" src="//form.myjotform.com/jsform/21436945234555?referrer=" + window.location.href + "\"></" + "script>");



    Besides this, on top of my form it show a small piece of code : document.write("

    Anyone an idea what could be the problem? 


    Page URL:

  • Profile Image
    JotForm Support

    Answered by Mike_T on May 23, 2012 at 07:41 PM

    Thank you for contacting us.

    There should be space between script and type "<script type".

    Please try with the following code:

    <script type="text/javascript">
    document.write("<scriptsrc=\"http://form.myjotform.com/jsform/21436945234555?referrer=" + window.location.href + "\"></" + "script>");

    If you need any further assistance, please let us know.

  • Profile Image

    Answered by Giftsngadgets on May 24, 2012 at 04:14 AM

    Worked like a charm!

    This solves a long standing problem for me!

    Thanks, you guys rock!