# Textbox

> Let form users enter free text, with optional length limits and Markdown display.

The Textbox field lets users enter free text, such as a name, reference, or comment. You can set length limits, provide a placeholder, and choose whether the field grows with its content or displays a fixed number of rows.

## Properties

| Property | Default | Description |
| --- | --- | --- |
| Editable | True | Allows the user to edit the field's value. |
| Required | False | Requires a value to be entered. |
| Text | Empty | The field's initial text. Can also be mapped to data. |
| Minimum | 0 | The minimum number of characters. |
| Maximum | 1000 | The maximum number of characters. Must be at least the Minimum. |
| Placeholder | Empty | Hint text shown in the empty editor. Choose static text or a display text; a selected display text takes precedence over static text. |
| Rows count | 0 | The number of rows displayed. With `0`, the textbox grows with its content. |
| Markdown | False | Enables a Markdown viewer in the web viewer. See [Markdown](#markdown) below. |
| Speech | False | Lets the client read the textbox's text aloud. Available when Markdown is disabled. |
| Speech input | False | Lets the user dictate text into the textbox. Available when Markdown is disabled. |
| Expandable | False | Lets the user enter text in an expanded view. |

Placeholder display texts are managed in [Translations](/no-code-platform/tools/translations/).

The field also supports the general label, tooltip, and stylesheet settings. **Reset source empty** clears the value when a linked source field becomes empty. **Log changes** logs changes when they are saved, and **Ignore change** excludes this field from the unsaved-changes warning when leaving a form. These three settings are disabled by default.

## Styling

Use the **Styling** tab to set the font size, font color, background color, border color, border thickness, border radius, and shadow. Bold, italic, and underline are desktop-only settings.

### Markdown

Enable **Markdown** to display formatted text in the web viewer, for example headings, lists, or links. The **Text** property then offers a Markdown editor.

Markdown mode disables **Font-size**, **Font color**, **Background color**, **Shadow**, **Speech**, and **Speech input**.

## Events

| Event | Description |
| --- | --- |
| On value changed | Triggered when the field's value changes. Use it to run an [action flow](/no-code-platform/app-studio/forms/logic/). |

## Validation messages

Customize these messages in the **Messaging** tab, using static text or a display text for translations.

| Setting | Shown when | Example text |
| --- | --- | --- |
| Required message | The field is required and no value has been entered. | Please enter a value. |
| Minimum length | The value is shorter than Minimum. | Enter at least {0} characters. |
| Maximum length | The value is longer than Maximum. | Enter no more than {0} characters. |

In the length messages, `{0}` is replaced by the configured minimum or maximum number of characters.

## Tips

- For a reference that must contain exactly 8 characters, set both **Minimum** and **Maximum** to `8`. Enable **Required** if users must provide a value.
- Use **Rows count** `0` for comments of varying length, and enable **Expandable** when users need more room to write.
- For a predefined input pattern or email validation, use a [Masked textbox](/no-code-platform/app-studio/forms/fields/basics/masked-textbox/).