# Text

Text questions are used to collect short or long-form free-text input from responders. Common use cases include gathering names, email addresses, or open-ended feedback.

Text question answers are stored as a `string` data type.

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2Fw6Kj4m9IkgNl0GY8j3hV%2Fimage.png?alt=media&#x26;token=2d4ff08d-ee12-4c72-8d5c-29f0eb46c812" alt=""><figcaption></figcaption></figure>

***

### Long-Text Input

By default, a text question shows a single-line input. To enable multiline responses:

* Select the question.
* Enable **Multiline?** in the settings panel.
* Specify the **minimum** and **maximum number of lines** for the input box.

To customize the dimensions of the input box further (e.g. to create a longer feedback box):

* Open the **Style** tab.
* Toggle **Override default text input style**.
* Apply your desired styling.

#### Limiting Answer Length

To control the length of a responder’s answer:

* Enable **Max length restriction?**
* Choose a limit by **characters** or **words**.

You can also enable **Show remaining count?** to display the number of characters or words remaining as the responder types.

***

### Formatting Input with Prefixes and Suffixes

To provide additional context and guide responders on the expected input, you can add:

* A **Prefix** (e.g. `$` or `@`)
* A **Suffix** (e.g. `USD` or `.com`)

These can be configured in the **Settings** menu under **Prefix?** and **Suffix?**.

***

### Allowing Multiple Answers

To allow a responder to submit more than one value for a single question:

* Enable **Allow multiple answers** in the settings.

Each new input will be treated as an individual item in an array of string values.

***

### Default Answer

Use the **Default answer** setting to prepopulate the text field with a preset value. This value can still be edited by the responder.

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FHNwpgv25DNyEiB12fzKc%2Fimage.png?alt=media&#x26;token=4441bbca-bcb4-4360-a114-388ec74de451" alt=""><figcaption></figcaption></figure>

#### Using Other Values as Answers

<figure><img src="https://1036686854-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJPnL__mOdr_mLZ8nwf%2Fuploads%2FZFy9py9sEtUn4VhDfSzU%2Fimage.png?alt=media&#x26;token=c6e4bd57-a584-4dea-a640-5f853282ffb9" alt=""><figcaption></figcaption></figure>

You can dynamically set the value of a Text question by referencing other variables in your flow:

* Enable **Another answer/variable** in the settings.
* Any other data-type-compatible variables will be available to choose (e.g. from a previous question, a calculated variable, or an API response).

This is useful for personalization or autofill behavior (e.g. pulling a first name from a previous step).

#### Constant

To assign a static value to a Text question that never changes:

* Use the **Constant** setting.

This is helpful for storing a fixed value (e.g. an internal tag or a source code) in the answers payload without requiring responder input.
