Hidden form fields give you another layer of customization to use with your integration.
How to access hidden form fields
Click on any form widget on your Leadpage or Leadbox to access its settings, which will appear in the left-hand sidebar.
Creating hidden fields
You can create hidden fields in three ways.
Automatically by your Email Service Provider (ESP)
Some hidden fields are created and pre-populated automatically by your ESP. For example, Infusionsoft includes three default hidden fields (which their API requires).
Manually inside your ESP account
Some ESPs will allow you to create or define hidden fields. In the example below, “Infusionsoft Hidden Field 4” was set up as hidden within Infusionsoft.
Manually inside Leadpages
To hide a field manually from within our Drag & Drop Builder:
- Click the field to open its options.
- Then, check the This is a hidden field box and enter a default value.
You can choose any default value the field supports, which will be submitted alongside information your visitor provides.
Pre-populating Hidden Fields
Each hidden field created in Leadpages must have a default value, but you can also dynamically pass in values from a URL parameter (such as one provided by your email service provider or ad software). To set it up, type in your URL variable in the URL Mapping field.
For instance, our page might be at a URL from an ad that includes a variable like so:
http://website.com/registration?ad_campaign=facebook. In this case, we’d put
ad_campaign as our URL variable (without the question mark).
When someone opts into the page on that URL, the hidden field would be populated with “facebook” so we could track which ad campaign our opt-in came from.
(Updated February 3, 2017)
Please let us know if you have additional questions.
You can always file a support ticket if you have additional questions by clicking the Support button in your dashboard shown here or clicking here to file a support ticket.