> For the complete documentation index, see [llms.txt](https://developer.collibra.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.collibra.com/workflows/designing-workflows/forms/form-components/text.md).

# Text

The **Text** component adds an input field where your users can enter a single line of plain text. This field is intended to capture short text elements, such as the name of a person. You can restrict this component to only accept certain values.

{% hint style="info" %}
Use the [Multiline text](/workflows/designing-workflows/forms/form-components/multiline-text.md) component to capture longer text elements.
{% endhint %}

The class of the stored value is String.

## General properties

| Property      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ID            | The identifier of the component, primarily used for client-side interactions and identification in the HTML structure of the form. When you add a component, an ID is automatically generated to ensure it is unique in the form.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Label         | Text that appears above the form component in Collibra, briefly describing its purpose. This is the main title or question for the field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| Label tooltip | <p>Additional help or information about the field. If defined, a question mark icon appears after the label, showing the tooltip when users hover their pointer over the icon.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The tooltip supports plain text only.</p></div>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Documentation | A text field for internal design notes or future reference about this specific component. This information is not visible in Collibra.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| Value         | <p>The name of the variable that stores the data entered into this field in Collibra. Use a variable name enclosed in double curly braces, for example <code>{{variableName}}</code>. Since this is a process variable, you can then use it throughout your workflow processes, such as in scripts, other forms, or service tasks.</p><p>You can also specify where the variable is saved:</p><ul><li><code>{{variableName}}</code> or <code>{{self.variableName}}</code>: Stores the value as a process variable in the current workflow.</li><li><code>{{parent.variableName}}</code>: Stores the value in a variable that belongs to the immediate parent process of the current workflow.</li><li><code>{{root.variableName}}</code>: Stores the value in a variable that belongs to the root process, which is the top-level workflow that started the current one.</li></ul> |
| Default value | The pre-filled value for the component when the form first appears. A filed shows the default value if the **Value** property does not set a value explicitly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Tab Index     | <p>The tabbing order of this component in a user task form. When navigating through the form by pressing the <kbd>Tab</kbd> key, the cursor moves from one component to another based on their assigned tab index numbers. The component with the lowest tab index number receives focus first. The focus then moves sequentially to the component with the next highest number. For example, a component with a tab index of <em>1</em> receives focus before a component with a tab index of <em>2</em>.</p><div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>The tab index is ignored if the component is inside a subform.</p></div>                                                                                                                                                                                                       |

## Validation properties

| Attribute          | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Required           | Whether the component must have a value for the form to be submitted.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Validation regex   | <p>A regular expression that the user input must match. If the input does not match the pattern, it is considered invalid.</p><p>For example, use <code>^\[a-zA-Z0-9.\_%+-]+@\[a-zA-Z0-9.-]+.\[a-zA-Z]{2,}$</code> to validate that the input follows a common email address format.</p>                                                                                                                                                                                                                                                                                            |
| Minimum length     | The minimum number of characters required for this component.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Maximum length     | The maximum number of characters required for this component.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Custom validations | <p>A list of additional validations for the component. Each custom validation consists of two parts:</p><ul><li><strong>Expression</strong>: A rule that must evaluate to <code>true</code> for the form to be submitted.</li><li><strong>Error message</strong>: The message that shows if the expression evaluates to <code>false</code>.</li></ul><p>For example, you can create a validation with the expression <code>{{experience>2}}</code>. This expression evaluates to <code>true</code> only if the value of the <code>experience</code> variable is greater than 2.</p> |

### Validation messages

| Attribute        | Description                                                                                           |
| ---------------- | ----------------------------------------------------------------------------------------------------- |
| Minimum length   | The error message that shows if the input contains fewer characters than the required minimum length. |
| Maximum length   | The error message that shows if the input contains more characters than the allowed maximum length.   |
| Validation regex | The error message when the input does not match the regular expression validation pattern.            |

## Rendering properties

| Property    | Description                                                                                                                                                                                                                                                                           |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Ignored     | Whether the component is be hidden in the form and any value it might hold is not included in the submission data.                                                                                                                                                                    |
| Visible     | Whether the component is shown or hidden on the form. You can controlled this unconditionally or through an expression. For example, you can set an expression that hides or shows the component based on a user selection in another component. This property is enabled by default. |
| Enabled     | Whether the component is interactive or read-only on the form. When disabled, users cannot change the component value. This property is enabled by default.                                                                                                                           |
| Description | Additional information shown in Collibra below the form field, providing detailed instructions, examples, or essential guidance.                                                                                                                                                      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.collibra.com/workflows/designing-workflows/forms/form-components/text.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
