# 📗 Constant Fields

Source: https://help.parsio.io/data-extraction/constant-fields

Constant fields are available **only in the template-based parser**.



While [regular fields](https://help.parsio.io/data-extraction/regular-vs-meta-fields-field-selection-rules) are used to extract **dynamic data** from incoming emails or documents, constant fields allow you to define **predefined (static) values**. These values are added to the parsed output even if they do not exist in the document itself.

This is useful when you want to:

- Tag documents
- Add contextual information
- Export a fixed value alongside extracted data

### Example use case

If your Parsio mailbox receives emails from multiple sources and processes them using different templates, you may want to include the **source name** or **document type** as part of the exported data.

A constant field allows you to do this without relying on document content.

## How to add a constant field

1. Open the **template editor**.
2. Navigate to the **Constants** tab.
3. Create a new constant field or add one from the unused mailbox fields.

![](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/template_1663001643.jpg)

4. Enter a **field name** and a **constant value**.

![](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/new-template_1663001726.jpg)

5. Save the template and re-parse an existing document to apply the changes.

![](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/parsed-document_1663001899.jpg)

The constant value will be included in the parsed output for all documents processed by that template.
