# Set Text

This is a pre-built Action located under the captured textbox element. The functionality of this Action in Avo Assure is to set text in the textbox. The status of this action is stored in a dynamic variable for further use during test execution.

## **Syntax**

**Input Value:** `<input value>`

| Argument                            | Description                                                                                                                                                                                                  |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>\<input value><br>(Required)</p> | <p>Provide the text to enter into the text box.</p><p>Supported input formats:</p><ul><li><strong>Text</strong></li><li><strong>Dynamic variables</strong></li><li><strong>Static values</strong> </li></ul> |

{% hint style="info" %}
**Note:** Input value should be provided in text format.
{% 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: Setting a Value into a Textbox Field**

In this example, we explain how to set a specific value into a textbox field within a web application using the **Set Text** action.

* **Action**: Set Text
* **Input Value**: John <Doe@gmail.com>
  * The input value (**John <Doe@gmail.com>**) specifies the text to be entered into the targeted textbox within the web application.
* **Output Value**: {Status}
  * The result of the **Set Text** operation is stored in the **{Status}** dynamic variable, which returns one of the following values:
    * **True**: If the text is set in the textbox successfully.
    * **False**: If the text is not set in the textbox successfully.
* **Logical Explanation**: The **Set Text** action takes the value from the **Input Value** column (**John <Doe@gmail.com>**) and inputs it into the specified textbox field within the web application. After execution, the result of this action is stored in the **{Status}** variable as true.

<figure><img src="/files/XXBNWwQ7oeIzaYtQraIf" 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/set-text.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.
