How to Capture the Submission Source Page or Form

April 18, 2024

If your form is embedded onto multiple web pages, you can use a hidden field to monitor where the entries are coming from. This can help you understand which pages are driving more engagement which can be useful for marketing and data analysis.

Note

This guide shows how to mark submissions from an embedded form by prepopulating a hidden field. For the widget method, see Capturing the Page URL.

To monitor the submissions’ source

  1. In the Form Builder, add a Short Text element to your form. Label your field with something descriptive (e.g., source).
  2. Open the Short Text’s properties.
  3. In the properties panel, go to Advanced at the top.
  4. Turn on Hide field.
  5. Open Field Details and copy the Short Text’s unique name.
Steps to hide the field and get the unique name in Jotform

To prepopulate your hidden Short Text, use its unique name and desired value as a query string to the embed code or parent window URL.

For example, the form’s JavaScript embed would look similar to the following:

<script type="text/javascript" src="https://form.jotform.com/jsform/1234567890?source=my_webpage"></script>

Or as follows for 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=my_webpage"
	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=my_webpage

To learn more, see Prepopulating Fields to Your Jotform via URL Parameters.

Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Comments:

  • Welemhret Gebremedhn - Profile picture
  • Mohammed Al Amin - Profile picture
  • panziowebsite - Profile picture
  • marcomm - Profile picture
  • jeronsam - Profile picture
  • jamesgreaves - Profile picture
  • Istvan - Profile picture
  • hosker4u - Profile picture