Looking to add hidden fields in OptinMonster? This can easily be done using our Custom HTML Optin Form integration option and following this guide.
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.
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="http://www.example.com/form.php" 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" /> </form>
valueattributes are always required for hidden fields.
Q: What kinds of information can I pass with hidden fields in my Custom HTML form?
A: 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.