> For the complete documentation index, see [llms.txt](https://docs.globo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globo.io/options/option-elements/input-type-options/text-and-textarea.md).

# Text and Textarea

#### 📝 Text vs. Textarea: What's the Difference?

Both **Text** and **Textarea** fields serve similar purposes — allowing users to input custom content. However, the **Textarea** is designed for **larger inputs**, offering **more space** and **greater flexibility** in layout.

***

#### ⚙️ Basic Settings Available for Both Fields

You can customize the following features for both **Text** and **Textarea** elements:

* **Label/Name** – Change the display name shown to customers.
* **Required Field** – Make the field mandatory before form submission.
* **Add-on Price** – Add an extra cost when a customer fills out this field.
* **Min/Max Characters** – Set minimum and/or maximum allowed characters.
* **Placeholder/Help Text** – Display guidance text inside the field before entry.
* **Default Value** – Pre-fill the field with a default value.
* **Character Count** – Show a live character counter to users.
* **Conditional Logic** – Show/hide this field based on other option selections.

<figure><img src="/files/Wjnejc1o5evzVYYs925o" alt=""><figcaption></figcaption></figure>

#### ⚙️ Advanced settings:&#x20;

In this section, you can configure several advanced settings for your product option elements:

1. **Add-on Advanced Function**
   * This allows you to customize how add-on products behave.
   * [Learn more about the add-on advanced function here.](/options/add-on-feature/advanced-add-on-function.md)
2. **Allow Value:** Define what kind of input customers are allowed to enter.

* **Option: Default :** Customers can enter **any value** freely without restrictions.

<figure><img src="/files/wmD8SNo24qmBCbOj0nGW" alt=""><figcaption></figcaption></figure>

* **Letter**: Only letters are allowed (A–Z, a–z)

<figure><img src="/files/Orrp7z7t8KA24vUv3tIV" alt=""><figcaption></figcaption></figure>

* **Letter and Number**: Only letters and numbers are allowed

<figure><img src="/files/qD97SBOIoeTfZuV9Vdz6" alt=""><figcaption></figcaption></figure>

3. **Text transform**

Define how the entered text will be displayed:

* **None**: Keep the text as entered.
* **Always Uppercase**: Convert all letters to uppercase.
* **Always Lowercase**: Convert all letters to lowercase.

**4. Helptext Position**

Choose where to display the help text for the option element:

* **Below Option Label**
* **Below Option Element**
* **Above Option Element**
* **Tooltip**

<figure><img src="/files/XKAICOHmK4UHChSz9q8R" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/jFzYGvwxpBX3ND0qNmzJ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/MNIwDojMqkK7tqyKZBuU" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/RR5OSE0UxrMf2TL4o8gq" alt=""><figcaption></figcaption></figure>

4. **Sufix/Prefix**

You can configure a **prefix** or **suffix** to display inside the input field, helping guide the customer’s entry or add context to their input.

<figure><img src="/files/tzCvmvQk4WlYddQFXgRW" alt=""><figcaption></figcaption></figure>

5. **HTML class**&#x20;

You can assign a custom HTML class to an element to control its styling or behavior using CSS or JavaScript.

6. **Column width**

You can **adjust the width** of each form field by setting its **column width**—this helps in creating a more compact, responsive, and visually appealing form layout.

<figure><img src="/files/sgoEIusrn2uwt8ENxjzx" alt=""><figcaption></figcaption></figure>

📧 **Need Help?**\
If you run into any issues while setting up your option set, feel free to reach out to us at **Chat** or email [**contact@globo.io**](mailto:contact@globo.io)**.**

We’re always here and happy to help — with sincerity and care!


---

# 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://docs.globo.io/options/option-elements/input-type-options/text-and-textarea.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.
