> For the complete documentation index, see [llms.txt](https://docs.does.qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.does.qa/test-steps/action/set-value.md).

# Set Value

Set value types into an input, textarea, or similar control. Use it when you need to enter a username, password, search term, or any other field value.

This is the **Action** Set value step. The [Data Set value](/test-steps/data/set-value.md) step writes to storage instead of filling a form field. They share a label and do different jobs.

![Set value Test Step](https://app.does.qa/screenshots/node/action_input_setValue.png)

## When to use it

* Enter text into a form field from plain text or a [Value](/values/value-store.md).
* Prefer Set value over [Send keys](/test-steps/action/send-keys.md) for ordinary typing. Use Send keys for special keys such as Enter or Tab.
* Turn on **Clear Value** when the field may already contain text you need to replace.

## Configure

### Basics

| Field           | What to set                                                 |
| --------------- | ----------------------------------------------------------- |
| **Element**     | The input [Element](/elements/creating-elements.md) to fill |
| **Value**       | Text and/or Values to type                                  |
| **Clear Value** | Clear the field before typing (`false` by default)          |

### Advanced

| Field                                 | What to set                                          |
| ------------------------------------- | ---------------------------------------------------- |
| **Status on fail**                    | [Failed Status](/test-step-options/failed-status.md) |
| **When should screenshots be taken?** | `Always` (default) or `On Failures`                  |

{% hint style="info" %}
**Pro tip:** Type `$` in Value to insert Assets Values or built-ins such as `$testEmail`.
{% endhint %}

## Related

* [Send keys](/test-steps/action/send-keys.md)
* [Clear](/test-steps/action/clear.md)
* [Select option](/test-steps/action/select-option.md)
* [File](/test-steps/action/file.md)
* [Action](/test-steps/action.md)

**Tags:** `action`, `input`, `setValue`, `fill`, `type`, `value`
