When using a form (rather than a button) URL parameters can't automatically be passed along to another page (or the form confirmation).
Unbounce forms pass along form data, but not URL parameters. To pass your incoming URL parameters you'll need to set up hidden fields to receive any incoming parameters:
- Add hidden field(s) to your form by double clicking your existing form and clicking the Hidden Field button on the left of the Form Designer
- Name the fields the same as your incoming parameters:
- If you're sending traffic to another page (not your Form Configuration), check "Append form data to URL" from the Properties Pane on the right:
All form data is passed through upon submission, so your incoming URL parameters will now be passed along to the next destination (whether Form Confirmation, or another page).
Pre-filling a Form with URL Parameters
With Unbounce, you can easily pre-fill your form fields with URL parameters (also known as query parameters).
What's a URL parameter you ask?
Well, among other things, a URL parameter is a way to pass data in a link to a web page. You can use URL parameters to track different metrics in services like Google Analytics or in this case, to pre-fill your form.
A URL parameter has two parts. A variable name and a value. In example below, "coupon" is the variable name and "50_2013" is the value:
Let's say you want to pre-fill a coupon code on your form. Great.
Using the example above, you'd just need to add a "coupon" field to your form and it would automatically pre-fill with the matching query parameter. Like this:
A popular use-case for this is when you're using Google's UTM tracking...
Google has a popular URL building tool for tagging your links with useful data (which also happens automatically if your Google Ads and Google Analytics accounts are linked). This will result in some paramaters being tacked onto the end of your Unbounce page URL which might look like this:
To capture this data in your form, just create a hidden field for each tag and give them the same name as the tag, so for this example you'd create the following hidden fields: