Help center

How to use hidden fields and URL parameters in a form

Record where a respondent came from, or any value in the link, without asking them a question, and use it in a rule.

On this page

A hidden field saves a value from the form's link with each response. Respondents never see it. Use it to tell apart people who came from your newsletter, a social post or a particular client email, by sharing a slightly different link with each group.

The value comes from a URL parameter: the ?utm_source=newsletter part at the end of a link. A hidden field with the parameter name utm_source saves newsletter with the response.

Add a hidden field

  1. On an empty line, type / and choose Hidden field under Form. On a phone, tap Turn into (the + button) in the toolbar and choose Hidden field in the Insert or turn into sheet.
  2. The editor shows a row with Hidden field and no parameter yet.
  3. Click the gear button on the row (Field settings). On a phone, tap the handle next to it and choose Field settings.
  4. Type the Parameter name, for example utm_source. The row now shows it.
A hidden field row in the editor showing utm_source, with its Field settings open on the Parameter name.

A form can have several hidden fields, one per parameter, for example utm_source and utm_campaign. Place them near the top of the form: a rule can only look at fields above it.

The AI builder can add hidden fields too, when your description asks to track a value from the link, such as "note which newsletter issue they came from". It names them by the same rule, and leaves out one whose name the rule does not allow.

Settings

A hidden field has one setting, Parameter name: the name in the link it reads.

  • It can use letters, digits, _ and -, up to 64 characters. Anything else shows Use letters, digits, _ and - only (up to 64). and is not saved.
  • Names are case-sensitive: UTM_SOURCE and utm_source are different parameters.
  • Learn more next to the setting opens this article.

Hidden fields have no Required switch, no Logic rule of their own and no placeholder. They cannot be turned into another question type, and no question can become a hidden field.

  1. Publish the form and copy its public link.
  2. Add the parameter to the end of the link: ?utm_source=newsletter.
  3. Share that link with the group it is meant for.

If the link already contains a ?, add the next parameter with & instead, for example ?utm_source=newsletter&utm_campaign=spring.

To pass the values through a form embedded on your own website, see How to pass URL parameters to an embedded form.

What respondents see

Nothing. A hidden field is not shown on the published form, in an embed or in the Preview tab, and it never stops the form from being sent.

  • If the link has no value for the parameter, the field is simply left empty.
  • Respondents cannot change the value on the form. Anyone can edit a link before opening it, though, so do not rely on a hidden field for anything that must be trusted.

Answers in Submissions, CSV and Google Sheets

The value is saved with the response, in a column named after the parameter, such as utm_source.

The Submissions tab with a utm_source column holding newsletter, linkedin and instagram next to each respondent's name.
  • The column is in the Submissions tab, in a CSV export and in Google Sheets.
  • If the parameter name is the same as one of the export's own columns (Submitted at, Status or Source, in any capitals) or as the wording of a question above it, the column is named with a ? in front instead, such as ?source.
  • Spaces at the start and end are removed. A value longer than 2,000 characters is left out, not cut: the field stays empty, and the browser's console names the parameter. An embedded form does the same.
  • Search in the Submissions tab finds responses by their hidden field values too.

Use a hidden field in a rule

Hidden fields can drive conditional logic. For example, show a question only when utm_source is newsletter, or put a thank-you note for newsletter readers in a section with that rule. In the rule's Field list, a hidden field shows as its parameter, such as ?utm_source. A hidden field with no parameter name yet is left out of the list, since it never receives a value: type its Parameter name first.

A section that depends on a hidden field works on a page without questions too.

Test a hidden field

Open the Preview tab and add the parameter to the end of the address in your browser, after ?tab=preview, for example &utm_source=newsletter. Press Enter to reload. The preview reads the value the same way the published form does.

Limits

  • Parameter names: up to 64 characters, letters, digits, _ and - only.
  • Values: up to 2,000 characters each.
  • Hidden fields count towards the form's 200 questions.
  • A hidden field cannot fill in a visible question. There is no way to pre-fill a short answer from the link.

Examples

Which channel brings your clients?

Add a hidden field utm_source at the top of your client intake form. Share ?utm_source=instagram in your Instagram bio, ?utm_source=newsletter in your newsletter and ?utm_source=podcast in your podcast notes. After a month, search the Submissions tab for podcast, or sort the exported CSV by the utm_source column, to see which channel brings the clients who fill it in.

One form, many client groups

Running the same check-in for two group programs? Add a hidden field cohort and send ?cohort=spring to one group and ?cohort=autumn to the other. Filter the CSV by the column instead of keeping two copies of the form.

A welcome line for newsletter readers

Put a short paragraph, "Thanks for coming over from the newsletter!", in a section with the rule ?utm_source is newsletter. Only people who arrive from that link see it. It is not secret, though: see What respondents see in the sections guide.