> ## Documentation Index
> Fetch the complete documentation index at: https://formbricks.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hidden Fields

> Add data to a submission without asking the user to type it in. This feature is especially useful when you already have information about a user that you want to use in the analysis of the survey results (e.g. `payment plan` or `email`).

## How to Add Hidden Fields

### Enable Hidden Fields

1. Edit the survey you want to add hidden fields to & switch to the Questions tab and scroll down to the bottom of the page. You will see a section called **Hidden Fields**. Make sure to enable it by toggling the switch.

<img src="https://mintcdn.com/formbricks/yKl9MUpEW6O1uJ5B/images/xm-and-surveys/surveys/general-features/hidden-fields/hidden-fields.webp?fit=max&auto=format&n=yKl9MUpEW6O1uJ5B&q=85&s=b0d54f4f2aa222e39ae5106ace4bda18" alt="Enable Hidden Fields" width="3560" height="2130" data-path="images/xm-and-surveys/surveys/general-features/hidden-fields/hidden-fields.webp" />

### Add Hidden Field IDs

1. Now click on it to add a new hidden field ID. You can add as many hidden fields as you want.

<img src="https://mintcdn.com/formbricks/yKl9MUpEW6O1uJ5B/images/xm-and-surveys/surveys/general-features/hidden-fields/input-hidden-fields.webp?fit=max&auto=format&n=yKl9MUpEW6O1uJ5B&q=85&s=68dc73381dfe89a68d327af3e3daff2b" alt="Add Hidden Fields" width="927" height="305" data-path="images/xm-and-surveys/surveys/general-features/hidden-fields/input-hidden-fields.webp" />

<img src="https://mintcdn.com/formbricks/yKl9MUpEW6O1uJ5B/images/xm-and-surveys/surveys/general-features/hidden-fields/filled-hidden-fields.webp?fit=max&auto=format&n=yKl9MUpEW6O1uJ5B&q=85&s=2f304da896064791224e590be38cd80a" alt="Filled Hidden Fields" width="3555" height="2126" data-path="images/xm-and-surveys/surveys/general-features/hidden-fields/filled-hidden-fields.webp" />

## Set Hidden Field via URL

Single Hidden Field:

```
https://formbricks.com/s/clin34bjy?screen=pricing
```

Multiple Hidden Fields:

```
https://formbricks.com/s/clin34bjy?screen=landing_page&job=Founder
```

## Set Hidden Fields via SDK

<Note>
  We are reworking how to add Hidden Fields via SDK moving away from binding them to Actions over to Context. Until then, we will **continue to support the current approach for the JS SDK**. However, we don't support Hidden Fields for the Android and iOS SDKs.
</Note>

```js theme={null}
formbricks.track("action_name", {hiddenFields: {myField: "value"}})
```

## View Hidden Fields in Responses

These hidden fields will now be visible in the responses tab just like other fields in the Summary as well as the Response Cards, and you can use them to filter and analyze your responses.

<img src="https://mintcdn.com/formbricks/yKl9MUpEW6O1uJ5B/images/xm-and-surveys/surveys/general-features/hidden-fields/hidden-field-responses.webp?fit=max&auto=format&n=yKl9MUpEW6O1uJ5B&q=85&s=eafce2c10f6585f4ea278b6669d2f88c" alt="Hidden Field Responses" width="1302" height="686" data-path="images/xm-and-surveys/surveys/general-features/hidden-fields/hidden-field-responses.webp" />

## Use Cases

* **Tracking Source**: You can add a hidden field to track the source of the survey. For a detailed guide on Source Tracking, check out the [Source Tracking](/xm-and-surveys/surveys/link-surveys/source-tracking) guide.

* **User Metadata**: You can add hidden fields to capture user metadata such as user ID, email, or any other user-specific information.

* **Survey Metadata**: You can add hidden fields to capture other metadata, e.g. the screen from which the survey was filled, or any other app specific information.
