How to Create Hidden Fields and Capture UTMs in Your Form

In this guide, we’ll walk you through the process of creating hidden fields in LeadCapture.io forms. There are two types of hidden fields. Watch this video for an over the shoulder walk through

  1. Hidden UTM Fields: Used to capture UTM parameters from the URL.
  2. Hard-Coded Hidden Fields: Used to pass specific data, such as TCPA compliance text or unique IDs, into a CRM.

How to Create a Hidden UTM Field

Step 1: Adding a UTM Field

  1. Go to the form where you want to add a hidden field.
  2. On the left-hand side, click Add Form Field.
  3. For the field name, enter the name of the UTM parameter (e.g., UTM_campaign ).
  4. Provide a field label (this won't be visible to users, but it’s still needed).
  5. For Field Type, select URL Lookup.
  6. Enter the exact UTM parameter name that you want to capture (e.g., UTM_campaign ). Make sure it matches the UTM parameter in the URL exactly.
  7. Click Save.

Now, your hidden UTM field is set up and will capture data from the URL when a user submits the form.

Example: Capturing a UTM Campaign Name

  • Field Name: UTM_campaign
  • Field Label: "UTM Campaign"
  • Field Type: URL Lookup
  • UTM Parameter: UTM_campaign

This field will now automatically capture the UTM campaign from the URL and store it in your form submission data.

How to Create a Hard-Coded Hidden Field

Step 1: Adding a Hard-Coded Hidden Field

  1. Navigate to the form where you want to add the hard-coded field.
  2. Click Add Form Field and enter a descriptive name (e.g., "TCPA Compliance").
  3. Provide a label (not visible to users).
  4. For Field Type, select Hidden Hard-Coded Field.
  5. In the Hidden Hard-Coded Value field, enter the text or value you want to pass (e.g., TCPA compliance text or a specific ID).
  6. Optionally, if you're passing this data to a third-party system like Leadbyte, you can specify a Webhook Field Name or a Field ID.
  7. Click Save.

Example: Passing TCPA Compliance Text

  • Field Name: TCPA_compliance
  • Field Label: "TCPA Compliance Text"
  • Field Type: Hidden Hard-Coded Field
  • Hidden Hard-Coded Value: "By submitting this form, you agree to TCPA terms."
  • Webhook Field Name (Optional): TCPA_text

When the form is submitted, this hidden value will be passed to your CRM or third-party system.

Additional Use Cases for Hard-Coded Fields

  • Passing Static IDs: You can pass a specific ID or value (e.g., 12345 for internal tracking).
  • Compliance Text: Pass required legal text such as TCPA compliance directly to your CRM.

Managing Multiple Hidden Fields

You can create as many hidden fields as needed. It's common to see forms with 10-20 hidden fields to track various parameters and data.

If you need help or have any questions while setting up your hidden fields, feel free to reach out to our support team.

Still need help? Contact Us Contact Us