Easily build and embed forms on your site. Try HubSpot Forms for free.  

How to pass hidden contact property values with forms

Last updated: April 4, 2018

Using hidden form field to pass values provides an easy way to set contact property values in a contact's record when they submit your form, without requiring the user to fill in that information. For example, perhaps you have a "Request A Quote" form on your page and you want the contacts who submit that form to get a Status equal to Open set on their contact record. That "open" status would enroll them in a workflow designed to send an internal notification to a sales rep to reach out to that contact. You can set this status on the form without the need for the contact to fill out that property or without setting up an additional workflow.

You can use this function in forms to set any contact property value of your choosing. Some common uses include blog subscription notification frequency, lead source, trial status, lifecycle stage (which will be covered in its own article)persona (also to be covered in its own article), and any other property you create. The only fields exempted from this ability are analytics properties.

Hidden fields on forms do not display on the live form, so there is no need to be concerned with these properties being visible to your leads. HubSpot makes it simple to add hidden fields to pass values onto a contact's record.

Create or select a form

From your HubSpot Marketing Basic, Professional, or Enterprise account, navigate to Contacts > Forms and either open an existing form or create a new form.

Add fields

Add the necessary fields to your form by clicking on a field in the Add form field sidebar menu and dragging it into the form.

Edit field options

Hover over the field you want to make changes to and click Edit.

Select 'Make this field hidden'

In the sidebar menu, select the checkbox to Make this field hidden.

Choose value to be passed

From your available options under Field options, choose the value which should be passed onto your contact's record upon submission.

Once selected, click Save in the upper right-hand corner. 

Test your form

Click the Test tab at the top to preview what your form will look like before taking your changes live. If you're using progressive profiling on any of your fields (Marketing Professional and Enterprise only), then you can click Preview form behavior, you'll notice that while your hidden field displays in the Preview form behavior sidebar menu, it doen't show in your actual form that visitors see.

Publish your form

When you're ready to take your changes live, click Publish in the upper right-hand corner.
New Call-to-action

Was this article helpful?

If you still need help you can get answers from the , or to contact support.

Previous article:

Next article: