Hidden fields



What are hidden fields?

Hidden fields are form fields that are pre-populated with data not visible to the user but are submitted with the form. These fields are often used to include additional information, such as timestamps, user IDs, or tracking data, without cluttering the form for the user.

Use cases

  • Timestamps: Automatically record the time when the form was submitted.
  • User IDs: Include the unique identifier of the user who is submitting the form.
  • Session Data: Pass session-specific information that helps in maintaining the state of the user’s interaction.
  • Tracking Information: Include campaign or referral data for tracking the source of form submissions.
  • A/B Testing: Track which version of a form a user is interacting with for testing different form designs or calls to action.


Advantages of using hidden fields

  • Clean User Interface: Keeps the form uncluttered and focused on essential inputs.
  • Automation: Streamlines processes by automatically including necessary background data.
  • Data Integrity: Ensures additional necessary data is included with every submission.