# Get Textbox Length

This is a pre-built action available under the **Captured Textbox Element** from the **SAP GUI Application**. The functionality of this action in Avo Assure is to fetches the length of textbox in SAP application and save the result in the dynamic variable.

{% hint style="warning" %}
***Note:** If the textbox has no character limit, it will return **0**. If there is a character limit, it will return that limit number **(e.g., 12)**.*
{% endhint %}

### **Syntax**

**Input Value:** `N/A`

| Argument | Description    |
| -------- | -------------- |
| N/A      | Not Applicable |

**Output Value**

| Argument                                    | Description                                                                          |
| ------------------------------------------- | ------------------------------------------------------------------------------------ |
| <p>\<Dynamic Variable></p><p>(Required)</p> | This variable holds the length of the text present in the textbox as a numeric value |
| <p>\<Dynamic Variable></p><p>(Optional)</p> | This dynamic variable holds the status as **True** or **False**.                     |

**Example**

**Retrieves the character length of a User Name textbox in the SAP Application.**

The **Get Textbox Length** action does not require any value from the Input Value column. It retrieves the length of the characters **(e.g., 12)** present in the **User Name** textbox. The result is stored in the **{Textbox Length}** variable&#x20;

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

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


---

# 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://docs.avoautomation.com/avo-assure/actions/sap/textbox-operations/get-textbox-length.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.
