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

    Hi, 

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

    http://www.jotform.com/help/95-How-to-Know-The-Exact-URL-Of-a-Page-Where-a-Form-Submission-Is-Made

     

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

    Code: 

    <scripttype="text/javascript">

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

    </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? 

    Edwin 

    Page URL:
    http://www.giftsngadgets.co.za/joom/promotional-blog/item/1039-tuff-it<br/>-new-high-visibility-golfer.html

  • 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>");
    </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!