Hidden field
Description
Hidden fields are a type of field not visible to the user. They are used for storing and processing data that the user does not need to see or interact with. Note that hidden fields are different from fields that are made hidden or invisible using conditional logic.
This field does not have styling or validation. Read more on using hidden fields.
Uses
URL prefill
You can, for example, share a form link that contains a URL parameter:
https://formcrafts.com/a/my-form?source=email
You can then create a hidden field labelled ‘source’. This would set the value of the hidden field to email.
Calculations
You can use math calculations in the value of a hidden field. This allows the hidden field to store the result of a math formula which can contain inputs from other fields. Math formulas in hidden fields can also reference other hidden fields.
User identifiers
You can use hidden fields to store user identifiers, like user IDs, that are not visible to the user.
Conditional values
Example, we have a hidden field labelled Message. If the total donation amount in our form is over 100, we set the value of Message to “Thank you for the generous donation”. We can then show this message as a part of the success text, or in email(s).