Skip to main content

Hidden field

What it does​

A Hidden field isn't shown on the form. It sends a value with the form that the visitor doesn't type, such as where the visitor came from (showroom-flyer, newsletter). The visitor can still change it: see Limits. Your team sees it with the other answers: on the submission page, in the submission list, in an export and in notification emails.

The builder's left panel doesn't list a Hidden field. To add one:

  1. Open the form in the builder.
  2. Under the form, click Add hidden field ("submitted, not displayed").
  3. The new field appears under Hidden fields below the form, with its settings open on the right. Set Hidden Field Value or one of the other sources below.
  4. Click Publish Changes.

A form also gets one from the Newsletter Signup template, which has a Signup source field with the value website, from a form brought over from WebForms 3 or imported, or when it's added through the API, for example by a connected AI assistant. You click it in the builder to change its settings.

The value comes from one of three places. A value from a link wins when the form accepts links. Otherwise Hidden Field Value is used, and Pre-fill with Customer Data fills the field only when Hidden Field Value is empty.

Source How you set it What is sent
A fixed value Hidden Field Value (General tab) The same text for every visitor, such as trade-page
A link Accept URL Parameters on in the form's settings, and a link with the field code, such as /trade-enquiry?source=newsletter The value in the link. It replaces Hidden Field Value
The customer's account Pre-fill with Customer Data, with Hidden Field Value left empty The signed-in customer's data, such as their email address. Guests send nothing

Links are described in Fill fields from a link.

When to use​

  • Use Hidden to tag submissions without asking the visitor, for example which page, campaign or link brought them. Notification conditions can then route the email.
  • Don't use it for anything a visitor must not change, such as a price or a discount. See Limits.

Settings​

Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the field on the form. It has only the General tab. You'll change these settings most often:

  • Hidden Field Value is the text sent with every submission. Tags in curly braces, such as {{var customer.email}} from older forms, aren't filled in: such a value is sent empty. Use Pre-fill with Customer Data instead.
  • Pre-fill with Customer Data fills the field from the account of a customer who is signed in, for example Email or Company. It works only while Hidden Field Value is empty.
  • Hide in Submissions hides the value wherever a submission is displayed: in the admin, the customer account, and the answer tables and field tags of emails and PDFs together. When it's on, your team doesn't see the value either.

The table below lists every setting. Visitors get a change after you click Publish Changes in the builder's top bar.

All settings of this field
Setting Where in the panel Values Translatable
Enable Field General → Basic On or off No
Label (required) General → Basic Text Yes
Field Code General → Basic Text No
Required General → Basic On or off No
Required Error Message General → Basic Text Yes
Hidden Field Value General → Field Settings Text Yes
Pre-fill with Customer Data General → Field Settings Full name, Customer / First name, Customer / Last name, Email, Billing Address / First name, Billing Address / Last name, Company, City, Street, Country 2 symbol code, Region, Postcode, Telephone, Fax No
Hide in Submissions General → Submission Display On or off No
Allow in Staff Email Subject General → Submission Display On or off No
Submission Label General → Submission Display Text Yes
Personal Data General → Privacy By field type — Personal data, Not personal, Personal data No

Validation​

A Hidden field has no checks of its own. Required stops the form when the field is empty, but the visitor can't fill it: they get a window titled Error with "Lead source is required" (your field's label) and can't send the form. Leave Required off, especially when the value comes from pre-fill or a link that a guest may not have.

Logic​

  • Show or hide this field: not needed. The visitor never sees the field.
  • Start a rule: no. Only fields with options can start a rule.
  • Email conditions: yes, with Is, Is Not, Contains, Starts With and Ends With. For example, a notification with "Enquiry source Is newsletter" goes only to your marketing team. Use the value for sorting and routing only, never for prices, discounts or access. See Recipients and conditions.

Limits​

  • A visitor can change the value. The field is part of the page, so anyone who edits the page in their browser can send a different value, and the store saves it. With Accept URL Parameters on, changing the link is enough. Treat the value as a hint, not as proof.
  • The value is visible in the page's source, so don't put anything secret in Hidden Field Value.
  • With Accept URL Parameters on, a link fills every field whose code it names, not only hidden ones.

Troubleshooting​

  • The value is empty in submissions. If Hidden Field Value holds a tag in curly braces, replace it with plain text or use Pre-fill with Customer Data. If the value comes from pre-fill, check that the visitor was signed in and that their account has that detail. If it should come from a link, check that Accept URL Parameters is on and the link uses the field code.
  • Visitors get an error naming a field they can't see. The Hidden field is Required and empty. Turn Required off.
  • A link doesn't change the value. Accept URL Parameters is off in the form's settings, or the link uses the label instead of the field code.

What's next​

Applies to WebForms 4Last reviewed October 14, 2026