How to pass Dynamic Variables into Hidden Fields

Lisa Fockens Updated by Lisa Fockens

Passing dynamic variables into hidden fields is a useful technique for popups created through Wisepops. With hidden fields, you can capture data that users don’t see, and later use it to segment, personalize, and tailor messaging to those users. In this how-to guide, we’ll show you how to pass dynamic variables into a form's hidden fields using Wisepops, step by step.

  1. Open up the Wisepops editor and create/edit the popup you want to work with.
  2. Click on your "Form" and navigate to the "Fields" tab from the left panel
  3. Add a hidden field to your form by clicking on "Add a field" and selecting "Hidden" from the dropdown.
  4. In the "Value" field of the hidden field settings, enter the dynamic variable you want to pass into the form. For example, if you want to pass your own user ID of the visitor, you could enter the following value: {{userId}}
    With user attributes, Wisepops can collect dynamic data without the need of a dynamic variable. Enable the toggle "Populate the field with user attributes" to see what's supported out of the box.
  5. Dynamic variables are filled with custom properties values. You can refer to the Custom properties' documentation to learn how to define a userId property from your website (or from a GTM variable).

Don't hesitate to contact your support if you have any questions.

Collect phone numbers / SMS opt-ins with Wisepops

Send the data collected by a form to the redirected URL

Contact