Hidden fields can only be used in Inline forms; they cannot be added to floating box, floating bar, or modal forms.
A hidden field can be used to pass information about contacts into your account when they submit your form. This field is not visible to your contacts. You can use a hidden field to collect information, such as UTM parameters, or even use it to help identify spam bot submissions.
In this article, we'll show you how to:
To add a hidden field to your form:
1. Click on Forms located on the leftside navigation.
2. Click “Edit” for the form you wish to add a hidden field to.
3. If your hidden field does not yet exist, click the “Add Custom Field” button located on the bottom right of your screen.
4. Choose "Hidden Field" from the "What type of field would you like to add?" list and click the "Next" button.
5. Type a name for the hidden field and click "Add." In this example, we'll call it "Hidden Field."
6. Drag the field from the right side menu and drag it into your form.
Use hidden fields to help identify spam submissions
To use a hidden field to identify spam submissions, all you need to do is add a hidden field to your form and leave it blank. You may want to label this hidden field “Spam” or “Spam Contact” so you can easily identify it later. Then, if your form is submitted with a value for that field, you'll know that a spam bot submitted your form and not an actual person.
It is important to note that this is not entirely foolproof as smart bots will not fill out a hidden field. The best way to protect your form from Spam submissions is to add a CAPTCHA to your form and to enable a double opt-in.