Can you make the Referral URL visible on the form

  • Profile Image
    dmcfeet
    Asked on January 13, 2015 at 02:18 PM

    When someone comes to my site, I would like to capture and display the URL where they clicked.  I think the referrer widget will capture the URL, but it does not display.

  • Profile Image
    Ben
    Answered on January 13, 2015 at 03:16 PM

    Hi,

    The referrer widget will actually only show you the location from where the jotform was submitted, not from where the people came to your website.

    To do that you would need to capture this info on your website and then pass it to the jotform to some field - which would in turn show it on your jotform.

    Example would be through the $_SERVER['HTTP_REFERER'].

    You can see more on this here: http://stackoverflow.com/questions/16374704/php-how-to-get-referrer-url

    Best Regards,
    Ben

  • Profile Image
    dmcfeet
    Answered on January 13, 2015 at 03:42 PM

    OK.  So this seems like all I need to understand is the syntax.  Can you help with that?

    Lets say that my form is

    1) http://form.jotform.us/form/50047823169153

    2) and the field I want to fill is called "website"

    What do I do next? 

     

  • Profile Image
    Mike
    Answered on January 13, 2015 at 04:53 PM

    To be able to use the $_SERVER['HTTP_REFERER'] you will need a form source code, and a PHP enabled web server to host the form and referrer script. There is no way to inject the code directly via the form builder. Do you use the PHP on your website?

  • Profile Image
    dmcfeet
    Answered on January 13, 2015 at 05:06 PM

    First of all this form will be embedded at Weebly. 

    I have pasted the source code into weebly, so that is set.

    Now what?

    Just in case you care, this is my test page www.editmob.com/jot/.  the form on the left is a weebly form the one on the right is yours.  The main reason I am thinking about switching is to get this feature.

  • Profile Image
    Ben
    Answered on January 13, 2015 at 05:20 PM

    Hi,

    I am trying to find a guide or anything in their support docs, but I am coming up short. Please contact them and check with them if there is any way that their system would let you pass the $_SERVER['HTTP_REFERER'] info into your code.

    Once you know how to capture this info on your pages, please let us know and we would be more than happy to help you set it all up.

    If they can not provide you with this info, then I am afraid that there is not much that we can do in regards to this info.

    Best Regards,
    Ben