Passing Query Parameter and Cookie Values With Hidden Fields In List Builder
In addition to the built-in, visible fields within List Builder, Sumo allows you to create hidden fields. Hidden fields are simply fields that are not visible on your form. You can use these to pass either static values that you choose, or pre-defined hidden value variables that Sumo provides.
You can find more information about our pre-defined hidden value variables within List Builder here.
You can create hidden fields by following the steps below:
- Navigate to the List Builder app within your Sumo dashboard and Edit your desired form.
- Make sure you are in the Design tab of your form.
- Click the Add New option, then select Hidden Field.
- Enter the Variable Name and Variable Value of your choice (don't forget to click Save).
In addition to the pre-defined hidden value variables within the dropdown menu in the Hidden Fields section of List Builder, you can also use our cookie and query parameter variables in order to dynamically pass query parameter and cookie values.
In order to pass the value of a query parameter, simply create a variable value starting with the word, query, followed by an underscore then the name of the query parameter.
For example, if you wanted to pass the utm_campaign value, sumo, within the url, http://www.mysite.com?utm_campaign=sumo, you would create the variable value below:
In order to pass the value of a cookie, simply create a variable value starting with the word, cookie, followed by an underscore then the name of the cookie.
For example, if you wanted to pass the value of a cookie named existingSubscriber, you would create the variable value below: