User Guide

Capture the Page URL Where the Form is Embedded

Last Update: April 27, 2017

Overview

If you are embedding the same form on multiple pages and would want to know which page the submission came from, here's the quick and easy solution.


How to Capture the Page URL?

Capturing the Page URL where the form is embedded is super easy.  Follow these 2 simple steps.

1. While in the form builder, open the Form Elements panel on the left side

2. Go to Widgets tab and search Get Form Page URL then add this widget to your form



 


That's it!

Here's an example submission with the Page URL captured by the widget.

27 Comments...

  • Debbie

    I was wondering if jotforms could be used to upload something like a picture and some sentences onto a page in my website instead of sending me an email.

  • webadmin

    I have a questions form which I use on two different websites. On the first site the form works well.

    On the second site, the form reports the page URL of the first site.

    I have tried clearing cookies, but that did not help either.

    What to do to get accurate URL reporting?

  • shopmfp

    why is this not working on my website:


    document.write("");

  • wbclsurvey

    Is there any way to get this concept to work with using the source code rather than an iframe or the embed code?

  • etobic

    can you explain in more details the "1. Insert a hidden box to your form, name it to something like "referrer" or "website""

    I did it all according this tutorial and I'm still getting only "referrer" text in my form received instead of link

  • etobic

    ups - one more time

    form: http://awesomescreenshot.com/04035vj5b

    code: http://awesomescreenshot.com/03835vt9a

    what am I doing wrong ?

  • brycelw

    My RAW short embed code works perfect with my site. Now I need to track the specific URL where a submission came from. I am confused because my short embed for my form is already a javaScript code. This is how it starts.

  • handstellstories

    I would like to do this, but would like to use the lightbox option. Is this possible?

  • handstellstories

    Hi there,

    Although I got this to work, I realize now it caused some problems w/ the website. I use shopify for my website. On every page that I added the form, as explained above, I can no longer see the price above the add to cart button.

    Here is an example of a page without the form: http://www.handstellstories.com/collections/home-decor/products/tree-of-life

    Here is an example of a page with the form: http://www.handstellstories.com/collections/home-decor/products/bird-pillow-shams

    Any ideas?

  • Aash

    The problem is how will i be able to find out the i-frame code as i am working with Dreamweaver-CS3. I am not able to do this process as it is not working. plz help me out asap.

  • vmgbpo

    Hi, I followed the instructions but even my form is not getting displayed now.

    here is default form code:





    here is my the code with the changes I have made


    document.write("
    ");

  • maverickbankcard

    Success!..after a day of tweaking. Note that there are “www’s” in the url instead of “form” and the hidden field name is case sensitive. I had Source_URL, but the field name is actually source_url. These subtleties are the difference between going to lunch...or not.


    document.write("");

  • krp54

    Hi there,

    Thank you for the script, but i can't get it working on my website. try clicking this button http://prntscr.com/k8ftt

    on a webpage: http://krp54.ru/XT-120.html

    Can you help please?

  • guest_23266997080059

    Hey,

    Not working on my blogger site with iframe:

    http://www.homeinrio.com/2012/12/test-13.html

    the whole form doesn't appear, looks like the document.write isn't wroking? Any thoughts?

    Thanks,

    KH

  • DanielJGarvey

    Brilliant!

  • aliaswave

    This isn't working with wordpress.

    I've tired both methods iframe and short code.

  • guest_30085481901046

    For some reason I could not login, although I am a paying JotForm customer (ccdesign).

    since document.write does not work well with XHTML, is there any other way to execute this in WordPress? When I use the embed code, my form works, but the page footer disappears. When I use the iframe code, my form isn't even there.

  • guest_30085481901046

    Me again...I finally had to use the entire source code, but that took care of it.

  • mktngdept

    THANK YOU!!!!! It took a little trial and error but in the end, I was just reading/understanding the instructions wrong. If you follow them exactly, it works.

  • jordan8037310

    Is there anyway to integrate this functionality with WishBox? Currently messing around with the javascript to no avail.

  • fradem

    Can you make a field-type with this? (like the UNIQUE ID field)

    Or just include this in all the answers just like you do with the IP?

    I am sure it would be much appreciated.

  • richsmithphoto

    How would you use this with the Wordpress plugin? I have to use this because script gets messed up in my Wordpress install for some reason. I went into the plugin code and found this line:

    return "";

    But I wasn't brave enough to edit it. Javascript and PHP confuse me. Any help would be great!

  • vmgbpo

    This is not working on my website. Here is a example page

    http://www.vmgmart.com/agro-shredder-machine/

    I fill up that yellow form created with jotform but the referral URL is not getting captured.

    Can some one please help me to make this work ?

    Thank you.

  • csmarketing

    Hi,

    This was working last week, but it's not working this morning on any of our forms.

  • beatsahead

    ve this code, the forms are coming through fine but it#s not giving me the url, can anyone tell me where i'm going wrong please?

    document.write("");

    One of the pages is http://www.beatsahead.com/london-dj-your-dj-in-london/

  • PriceIT

    My forms not showing up anymore after I tried this.

    Here's the code:
    http://gyazo.com/094d1994b3b81f9601ba3edc751c073b

  • priyo

    Thx all.

    website me
    http://swalayanperak.com/custom-cincin-2

Send Comment