How to Add Hidden Fields in OptinMonster

Using OptinMonster’s flexible Custom HTML integration option, you can easily add hidden fields to your optin form.

In this article, you’ll learn how to add hidden fields to your custom HTML form in OptinMonster.

Before You Start

Here are some things to know before you begin:

  • This guide assumes you’re already familiar with the Custom HTML integration option in the campaign builder.
  • The name and value attributes are always required for hidden fields.
  • Hidden input fields are identifiable by the type attribute, and do not appear visible to your visitors but allow you to pass additional details with your form.
    For example:

    <input type="hidden" name="Language" value="English">

Add Hidden Fields

The following is an example of a simple HTML form including two input fields to collect the name and email address and a hidden input field that specifies the language.

<form src="" method="post">

   <input type="text" name="name" placeholder="Name" />

   <input type="email" name="email" placeholder="Email Address" />

   <input type="hidden" name="Language" value="English">

   <input type="submit" name="submit" value="Submit" />



What kinds of information can I pass with hidden fields in my Custom HTML form?

This will depend on your specific Email Service Provider. If you’re unsure what data can be collected with your form we recommend contacting your Email Service Provider.