# verifyTextboxLength

This is a pre-built Action located under the captured textbox element. The functionality of this Action in Avo Assure is to verify whether the maximum length of the textbox matches the value specified in the **Input Value** column. The verification result is stored in a dynamic variable for further use during test execution.

## Syntax

**Input Value**: `<input value>`&#x20;

| Argument                            | Description                                                      |
| ----------------------------------- | ---------------------------------------------------------------- |
| <p>\<input value><br>(Required)</p> | Provide the numeric value to verify against the text box length. |

{% hint style="info" %}
&#x20;**Note**: The user must provide the input as a positive numeric value.
{% endhint %}

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

| Argument                                                    | Description                                                       |
| ----------------------------------------------------------- | ----------------------------------------------------------------- |
| \<Dynamic Variable>(Optional);\<Dynamic Variable>(Optional) | Both dynamic variable stores the status as **True** or **False**. |

### **Example: Verifying the Length of a Textbox**

In this example, we explain how to verify whether the character length of a textbox matches the specified expected value using the **verifyTextboxLength** action.

* **Action**: verifyTextboxLength
* **Input Value**: 15
  * The input value (**15**) specifies the expected number of characters that the textbox should allow.
* **Output Value**: {Status}
  * The result of the verification is stored in this **{Status}** dynamic variable with the following possible values:
    * **True**: If the textbox length matches the expected value.
    * **False:** If the textbox length is not matches the expected value.
* **Logical Explanation**: The **verifyTextboxLength** action takes the value from the **Input Value** column (**15**) and compares it with the actual character length of the targeted textbox and the execution status is stored in the **{Status}** variable as true.

<figure><img src="/files/V9xs1Z4aKysbbpiFHdWh" 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/web/textbox/verifytextboxlength.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.
