Skip to content

Pass contact property values with hidden form fields

Last updated: November 29, 2021

Applies to:

All products and plans

You can use a hidden form field to pass a value into a property without requiring contacts to fill in the corresponding form field. 

For example, when a contact submits a Request a quote form, you may want them to automatically have a Status of Open. You can use a hidden field to set a value of Open on the Status contact property without the contact explicitly filling out that form field.

  • In your HubSpot account, navigate to Marketing > Lead Capture > Forms.
  • Click the name of a form or create a new form.
  • In the form editor, hover over a form field to make hidden and click the pencil icon edit.

  • In the left pane, click to toggle the Make this field hidden switch on.

  • In the left panel, specify the value to pass into the property on the contact record when the form is submitted. This varies depending on the property field type:
    • Date picker/Number/Single-line text/Multi-line text: enter the value in the Default value text field.

    • Dropdown select/Multiple checkboxes/Radio select: select the checkbox next to the options you want to use from Field options.

    • Single checkbox: select the Yes, No, or No value radio button. 

Please note: If the Pre-populate fields with known values option is toggled on, the specified value may be overwritten depending on the property's field type

  • In the top right, click Publish.
Was this article helpful?
This form is used for documentation feedback only. Learn how to get help with HubSpot.