---
title: "Hidden Field"
description: "Discover how to implement a hidden HTML input field for secure form submissions and data handling. (Gitana 4.0)"
product: "Gitana"
version: "4.0"
url: "/documentation/gitana/4.0/forms/fields/hidden"
---

# Hidden Field

The `hidden` field.

### Properties

|  |  |
| --- | --- |
| Title | Hidden |
| Description | Field for a hidden HTML input |
| Field Type | [hidden](/documentation/gitana/4.0/forms/fields/hidden.md) |
| Base Field Type | control |

### Schema

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| enum | array |  | List of specific values for this property |

### Options

| Property | Type | Default | Description |
| --- | --- | --- | --- |
| name | string |  | Field Name. |
| sort | function |  | Defines an f(a,b) sort function for the array of enumerated values \[{text, value}\]. This is used to sort enum and optionLabels as well as results that come back from any data sources (for select and radio controls). By default the items are sorted alphabetically. Don't apply any sorting if false. |

## Example 1: Form with Hidden Field

This example renders a form with a hidden `token` field. When the form submits, we extract the token value and print it out.
