# 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="https://2174257472-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fk8QZzXZMIJSStKAzDSTu%2Fuploads%2FLkUWtmnY7bAFxFDJ9EBO%2Fimage.png?alt=media&#x26;token=6fb2da2a-4c84-499d-accb-fdb96f9623c6" alt=""><figcaption></figcaption></figure>
