If your form is embedded onto multiple web pages, you can monitor where the entries are coming from by using a widget or a hidden field.
Note
This guide shows how to tag an embedded form’s submissions by prepopulating a hidden field. For the widget method, see Capturing the Page URL.
Here’s how to set it up:
- In Form Builder, add a Short Text element to your form.
Label your field with something descriptive. For example, “source.” - Click on the Short Text’s gear icon to open its Properties panel.
- Choose Advanced in the Properties panel on the right.
- Scroll down to the Hide field option and set it to “On.”
- Expand the Field Details section and copy the Short Text’s unique name.
You can now add a query string to your embed code’s or parent window’s URL to prepopulate the hidden field. For example, if your form is embedded on the contact page, you can append the field’s unique name and value to the embed code’s SRC attribute or the contact page’s URL.
Using the example above, the JavaScript embed code would look like the following:
<script type="text/javascript" src="https://form.jotform.com/jsform/1234567890?source=contact_page"></script>
Or, as follows if you’re using the iframe embed code:
<iframe
id="JotFormIFrame-1234567890"
title="Form "
onload="window.parent.scrollTo(0,0)"
allowtransparency="true"
allowfullscreen="true"
allow="geolocation; microphone; camera"
src="https://form.jotform.com/1234567890?source=contact_page"
frameborder="0"
// the rest of the code...
For Feedback and Lightbox embed codes or when adding the query string to the embed code’s SRC attribute doesn’t work, you can add the query string to the parent window’s URL:
https://www.example.com/contact?source=contact_page
To learn more, see Prepopulating Fields to Your Jotform via URL Parameters.
Send Comment:
9 Comments:
146 days ago
Ok, let me ask this question in another way that (match my needs right now) :
I have a form and I want to publish it (no't embed it in any pages), just sharing the form URL in many social media platform. After someone submitted the form how to determine that this submission came from twitter, snapchat, Instagram, telegram or email?...
More than a year ago
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.
More than a year ago
You can use the "Referrer" widget. It will give you the url for the page the form was on.
More than a year ago
Me encanta jotform, desde que lo descubri no he dejado de usarlo. Realmente lo recomiendo, es facil de usar y muy practico.
More than a year ago
I use Jotform to register my users. I just add a REGISTER button in my software and it directs the immediately to the form. It's clean, neat and professional.
More than a year ago
GREAT!
More than a year ago
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?
More than a year ago
This was very useful, how do I do this with JavaScript and not iFrame?
More than a year ago
whats this?