# Text Input

Adds a text input form field. It has three modes differentiated by the type of data it handles: *string*, *integer*, *decimals.* Currently, this is the only type of Option which has [Validation Conditional Logic](/uni-cpo-4-documentation/usage/validation-conditional-logic.md).

Tip: in order to let your Text Input option accept decimals, switch to "Decimals" mode and use Step setting to fine tune it. For instance, defining '0.1' as step allows accept one digit after the dot, but defining '0.0001' allows accept 4 digits after the dot! 4 digits is the maximum.

🏆 **PRO FUNCTIONALITY**: In addition to the main variable that holds the value itself, this Option also has these special vars:

```
{option_slug_count}
{option_slug_count_spaces}
```

These variables hold numbers of characters counted without spaces and with spaces respectively.


---

# Agent Instructions: 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://kb.moomoo.agency/uni-cpo-4-documentation/usage/options/text-input.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.
