How to Know which Page or Form the Submission Came From

Last Update: March 6, 2016

Update: It is now easy to capture the page URL where the form is embedded without performing the following steps. Just add the "Get Form Page URL" widget in your form and you're ready to go.


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:


6 Comments...


   
carefreetees (May 27, 2011 at 11:06 PM)

whats this?

View Answer


   
hosker4u (July 22, 2011 at 10:39 AM)

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

View Answer


   
Istvan (February 26, 2012 at 09:56 AM)

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?

View Answer


   
drakeladue (May 29, 2013 at 11:57 AM)

GREAT!


   
marcomm (August 19, 2014 at 06:03 PM)

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


   
panziowebsite (October 17, 2014 at 02:44 PM)

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.

View Answer


Send Comment