How to use the hidden field block

Hidden fields are like hidden gems. Use them to make your forms and surveys more personal. Or keep track of your respondents or other information you pass to the form.

The concept

The idea of a hidden field block is you're able to store information without a visual representation in the form. That information is then saved with the rest of the form data when the form is submitted. But it can also be used to create logic in your form and make certain decisions based on the information in the hidden field.

Adding a hidden field block

The hidden field block is available as a question type by clicking the Question type dropdown after you've added a new block. You can add it in any given position and in an unlimited amount inside your forms.

Hidden fields are available from the Question type menu.

After that you can change the settings of the block to get the desired behavior:

  • Name - The name of the field in your form (not visible for respondents);
  • Type of field - This determines the information you want to get, for example a timestamp, browser information like the user language, a cookie, a page URL, or screen information like the screen orientation;
  • Depending on the selected type of field, complementary features and settings can come up. For example, if you want to get a certain cookie value, you can enable the feature Cookie on the left and then enter the name of the cookie you want to retrieve.

Example of a hidden field getting a cookie value.

Using a hidden field value for logic

After you retrieved a hidden field in your form, you can instantly use that value to execute logic based on the value of the hidden field. For example, you can use the value of a certain cookie to determine the flow in your form. If the cookie equals the desired value, you can enter a flow. If not, you could enter a different flow.

This works the same way you can add logic based on 'normal' question blocks, like you can see in this article on logic.

Use a hidden field value to execute logic.

Also read our blog

We also wrote a blog post with some more background information, use cases and working examples of hidden fields.

Use these helplines if you have any questions, problems or requests