# Get Element by Name

{% hint style="info" %}
**Block Information**

Available in: Page Flow

Toolbox Category: Html/DOM

Block Type: [Output](https://docs.zingy.ai/app-editor/block-anatomy#output-block)

Output Type: [*element*](https://docs.zingy.ai/app-editor/page-flow/references/value-types)
{% endhint %}

**`Get Element by Name`** is an [output block](https://docs.zingy.ai/app-editor/block-anatomy#output-block) that allows you to retrieve a reference to any element on a page or form by providing it's [name](https://docs.zingy.ai/page-editor/page-element-settings#name) . The output is of type [*element*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) and is compatible with [Value Parameters](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) of type [*element*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) or of type [*any*](https://docs.zingy.ai/app-editor/page-flow/references/value-types).

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FsX3fvcXdG1RnYA4cwgWC%2Fimage.png?alt=media&#x26;token=24263f4c-dad6-485b-8457-6a8766af82af" alt="" width="260"><figcaption><p>Get Element by Name block</p></figcaption></figure></div>

The block consists of *Name* a [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts a *text* value representing the [name](https://docs.zingy.ai/page-editor/page-element-settings#name) of the element.

{% hint style="warning" %}
NOTE: If there are multiple elements with the same name, this block outputs a reference to the first such element.
{% endhint %}

***

## Usage Example

The image below shows an example of the Get Element by Name block where the value of the [Input](https://docs.zingy.ai/app-editor/page-editor/built-in-elements/input) element named "*Input28*" is set to the text "*Hello!*" using the [Set Input Value](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/set-input-value) block.

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2F41f7JfkyVo5RwIeUD2ck%2Fimage.png?alt=media&#x26;token=29f36c0d-43a0-456a-9038-f1f80e117518" alt="" width="563"><figcaption><p>Example of Get Element by Name</p></figcaption></figure></div>
