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

# Text

> Text

This element is a single-line text input field.

## Configuration

| Setting         | Description                                           |
| :-------------- | :---------------------------------------------------- |
| label           | UI label                                              |
| maxLength       | The maximum length of the field<br />Default is 255   |
| size            | The number of displayable characters                  |
| placeholder     | A temporary string (v. 8.4R08)                        |
| isPassword      | Whether the input should be a valid password          |
| isSingleEmail   | Whether the input should be a single email address    |
| isMultipleEmail | Whether the input should be 1 or more email addresses |
| notEmpty        | Whether an empty choice is OK                         |
| notEditable     | Whether the field can be changed                      |
| isSingleSms     | Whether the input should be a valid SMS message       |
| isNumber        | Whether to restrict input to numbers only (v. 7.1)    |

All settings starting with *is* or *not* are Bool.

### isNumber mode

| Setting      | Description                                   |
| :----------- | :-------------------------------------------- |
| precision    | The number of digits after a comma for floats |
| minValue     | The lowest acceptable number                  |
| maxValue     | The highest acceptable number                 |
| notEmpty     | Whether an empty choice is OK (Bool)          |
| noRangeCheck | Whether to skip checking range (Bool)         |

## Example

```crmscript theme={null}
label = title
notEmpty = true
```

## Functions

### setValue(String value)

Sets the contents of the field.

### toString()

Converts the contents to a field to a string.


## Related topics

- [text table](/en/database/tables/text.md)
- [Text analysis](/en/ai/learn/text-analysis.md)
- [Summarize Text](/en/api/reference/restful/agent/ai_agent/summarize-text.md)
- [Expand Text](/en/api/reference/restful/agent/ai_agent/expand-text.md)
- [Rephrase Text](/en/api/reference/restful/agent/ai_agent/rephrase-text.md)
- [Format text](/en/developer-portal/faq/format-text.md)
- [Html2 Text](/en/api/reference/restful/agent/ticket_agent/html2-text.md)
