# Get Input Value

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

Available in: Page Flow

Toolbox Category: Input

Block Type: [Output](/app-editor/page-flow/block-anatomy.md#output-block)

Output Type: [*text*](/app-editor/page-flow/references/value-types.md)
{% endhint %}

**`Get Input Value`** is an [output block](/app-editor/page-flow/block-anatomy.md#output-block) that allows you to retrieve the value of [Input](/app-editor/page-editor/built-in-elements/input.md), [Dropdown](/app-editor/page-editor/built-in-elements/dropdown.md) and [Multi-line](/app-editor/page-editor/built-in-elements/multi-line.md) elements on a page or form. The output is of type [*text*](/app-editor/page-flow/references/value-types.md) and is compatible with [Value Parameters](/app-editor/page-flow/block-anatomy.md#value-parameters) of type [*text*](/app-editor/page-flow/references/value-types.md) or of type [*any*](/app-editor/page-flow/references/value-types.md).

{% hint style="success" %}
Refer to the [Get Input Value in Data Design](/app-editor/page-flow/toolbox-blocks/get-input-value-in-data-design.md) block for dynamically generated content.
{% endhint %}

The block comes in two modes which are discussed below.

## Mode 1 <a href="#mode-1" id="mode-1"></a>

<div align="left"><figure><img src="/files/kYV1gF8ERQ13surpFxEC" alt="" width="275"><figcaption><p>Get Input Value (Mode 1)</p></figcaption></figure></div>

The Mode 1 version of the Get Input Value block consists of a [Selectable Input](/app-editor/page-flow/block-anatomy.md#selectable-input) to choose the element you want to get the value of.

## Mode 2 <a href="#mode-2" id="mode-2"></a>

<div align="left"><figure><img src="/files/ZfGjY2lj9HhDBxSw7ieM" alt="" width="210"><figcaption><p>Get Input Value (Mode 2)</p></figcaption></figure></div>

The Mode 2 version of the Get Input Value block consists of a [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts either a [*text*](/app-editor/page-flow/references/value-types.md) value in the form of a [CSS Selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors) or an [*element*](/app-editor/page-flow/references/value-types.md) value[.](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors) The Element block comes pre-attached for your convenience but can be removed and customized.

***

## Usage Examples

The image below shows an example of the Mode 1 version where the variable *b* is set to the text entered in the selected input element.

<div align="left"><figure><img src="/files/5eSxWftb6DSuZQvkyU5k" alt="" width="563"><figcaption><p>Example of Get Input Value Mode 1</p></figcaption></figure></div>

In the next example we see a Mode 2 version where the variable *b* is set to the text entered in the selected input element. This time the element is selected using a [CSS Selector](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors).

<div align="left"><figure><img src="/files/q92K1oLqU4XuZ8hS1kKn" alt="" width="563"><figcaption><p>Example of Set Input Value Mode 2</p></figcaption></figure></div>

Lastly we have another example with a Mode 2 version. This time the [Show Information Popup](/app-editor/page-flow/toolbox-blocks/show-information-popup.md) block is used to show a message that contains the text entered in the selected element.

<div align="left"><figure><img src="/files/YxQwm7Vh210LRGyHNMWK" alt=""><figcaption><p>Example of Set Input Value Mode 2</p></figcaption></figure></div>


---

# 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.zingy.ai/app-editor/page-flow/toolbox-blocks/get-input-value.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.
