User Guide

 

How to Know which Page or Form the Submission Came From

How to Know which Page or Form the Submission Came From

Update: Here's the updated guide: https://www.jotform.com/help/95-Capture-the-Page-URL-Where-the-Form-is-Embedded


The first thing you need to do is insert a Hidden Box into your form. You can find it under the Widgets section of the Form Builder.



Name that box with something that's easy to remember. Let's say, "website".

Get your iframe embed code. 

Append this piece of code: "?website=google" at the end of the URL so it becomes

Replace google with any identifier, i.e. your website's name.

Embed your form.

As an example, filling out this form with the url parameters ?website=google


sends me this notification email:

Send Comment

6 Comments...

  • panziowebsite

    Hi, unfortunatelly I can't get the text instead of "google" I just get numbers in order (1,2,3). Why is it? I would like to identify my pages with a choosen name.

  • marcomm

    You can use the "Referrer" widget. It will give you the url for the page the form was on.

  • drakeladue

    GREAT!

  • Istvan

    Hi! This could be automated? I mean, the form automatically could detect the page, where it is embedded. I would use it at my online store: I would embedd this form in every product-page, and if the buyer needs info about a product, he can fill this form, and I would know, about which product he is asking info. Could this be done?

  • hosker4u

    This was very useful, how do I do this with JavaScript and not iFrame?

  • carefreetees

    whats this?