> For the complete documentation index, see [llms.txt](https://docs.avoautomation.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.avoautomation.com/avo-assure/actions/sap/textbox-operations/get-textbox-length.md).

# Get Textbox Length

This is a pre-built Action located under the Textbox Element captured from the SAP GUI application. The functionality of this Action in Avo Assure is to fetch the maximum character limit of a textbox in the SAP application. The fetched value is stored in the given dynamic variable for further use during test execution.

## **Syntax**

**Input Value**: N/A

{% hint style="info" %}
**Note**: The action returns the character limit of the textbox:

* **Character limit set:** The action returns the limit as a number. For example, 12
* **No character limit set:** The action returns 0.
  {% endhint %}

| Argument | Description                                                   |
| -------- | ------------------------------------------------------------- |
| N/A      | Not Applicable. This action does not require any input value. |

**Output Value**: `<Dynamic Variable>;<Dynamic Variable>(Optional)`

| Argument                       | Description                                                                         |
| ------------------------------ | ----------------------------------------------------------------------------------- |
| \<Dynamic Variable> (Required) | This dynamic variable stores the character limit of the textbox as a numeric value. |
| \<Dynamic Variable> (Optional) | This dynamic variable stores the status as **True** or **False**.                   |

### **Example: Fetching the Character Limit of a Textbox**

In this example, we explain how to fetch the character limit of the User Name textbox in the SAP application.

* **Action**: Get Textbox Length
* **Input Value**: N/A\
  This action does not need any value in the Input Value column.
* **Output Value**: {Textbox Length}\
  The character limit of the User Name textbox (For example, 10) is stored in this **{Textbox Length}** dynamic variable.
  * If a second output variable is provided, the action returns the status as **True** or **False**:
    * **True**: If the action fetches the textbox length successfully.
    * **False**: If the action fails to fetch the length, for example, when the textbox is not found or is not accessible.
* **Logical Explanation**: The **Get Textbox Length** action reads the **User Name** textbox in the SAP application. It fetches the character limit of the textbox (For example, 10) and stores it in the **{Textbox Length}** variable.

<figure><img src="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FqBfcyny1mPNYSu52GvZy%2Fimage.png?alt=media&amp;token=0a51f459-2337-4a44-9368-f1c8743b2405" alt=""><figcaption></figcaption></figure>

#### **Knowledge Bites**:

Here are some examples of different textbox scenarios:

<table><thead><tr><th width="302">Textbox Scenario</th><th width="228">Input Value</th><th>Result</th></tr></thead><tbody><tr><td>Textbox with a character limit of 12</td><td>N/A</td><td>12</td></tr><tr><td>Textbox with a character limit of 40</td><td>N/A</td><td>40</td></tr><tr><td>Textbox with no character limit</td><td>N/A</td><td>0</td></tr></tbody></table>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.avoautomation.com/avo-assure/actions/sap/textbox-operations/get-textbox-length.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
