# Set Input Feedback in Data Design

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

Available in: Page Flow

Toolbox Category: Input

Block Type: [Regular](/app-editor/page-flow/block-anatomy.md#regular-block)
{% endhint %}

**`Set Input Feedback in Data Design`** is a [regular block](/app-editor/page-flow/block-anatomy.md#regular-block) that allows you to set the feedback for [Input](/app-editor/page-editor/built-in-elements/input.md), [Dropdown](/app-editor/page-editor/built-in-elements/dropdown.md), [Multi-line](/app-editor/page-editor/built-in-elements/multi-line.md), [Checkbox](/app-editor/page-editor/built-in-elements/checkbox.md) and [Toggle Switch](/app-editor/page-editor/built-in-elements/toggle-switch.md) elements that were generated using the [Content from Data Design](/app-editor/page-flow/toolbox-blocks/content-from-data-design.md) block and dynamically added to the page or form.

<div align="left"><figure><img src="/files/PsmDzxmyZ90azkHWjtjZ" alt="" width="267"><figcaption><p>Set Input Feedback in Data Design example</p></figcaption></figure></div>

{% hint style="warning" %}
NOTE: [Input](/app-editor/page-editor/built-in-elements/input.md), [Dropdown](/app-editor/page-editor/built-in-elements/dropdown.md), [Multi-line](/app-editor/page-editor/built-in-elements/multi-line.md) elements must have their [**`Form Control`**](/app-editor/page-editor/built-in-elements/input.md#form-control) option set to "yes" for feedback control to work.
{% endhint %}

The feedback can be one of:

* Valid: Renders the element with a green border and a green check mark to indicate that the data entered is valid.
* Invalid: Renders the element with a red border and a red exclamation mark to indicate that the data entered is invalid.
* Cleared: Resets the element to it's original pre-validated state.

The behavior of the block is similar to the [Set Input Feedback](/app-editor/page-flow/toolbox-blocks/set-input-feedback.md) block, with some important differences:

* Works only with elements generated using [Content from Data Design](/app-editor/page-flow/toolbox-blocks/content-from-data-design.md) block that are dynamically added.
* Element Selection: You can only choose an element placed inside the selected [Data Design](/app-editor/page-editor/built-in-elements/data-design.md) element.

The block consists of the following (from top to bottom):

* *Data Design*: [Selectable Input](/app-editor/page-flow/block-anatomy.md#selectable-input) to choose the [Data Design](/app-editor/page-editor/built-in-elements/data-design.md) element whose element you want to target.
* *Element*: [Selectable Input](/app-editor/page-flow/block-anatomy.md#selectable-input) to choose the element, within the selected [Data Design](/app-editor/page-editor/built-in-elements/data-design.md), you want to set the feedback of.
* *ID*: Optional [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value representing the unique value that was provided to the [Content from Data Design](/app-editor/page-flow/toolbox-blocks/content-from-data-design.md) block. See below for more details.
* *ID2*: Optional [Value Parameter](/app-editor/page-flow/block-anatomy.md#value-parameters) that accepts a [*text*](/app-editor/page-flow/references/value-types.md) value representing the secondary identifier that can be used to identify the desired element. See below for more details.
* *Data*: [Dropdown](/app-editor/page-flow/block-anatomy.md#dropdown) that accepts the type of feedback to set.

***

## ID and ID2 usage

The behavior of this block depends on the ID and ID2 [value parameters](/app-editor/page-flow/block-anatomy.md#value-parameters) and is detailed below:

* ID and ID2 not provided: Operate on the selected element for all generated instances of the same [Data Design](/app-editor/page-editor/built-in-elements/data-design.md) element.
* ID2 provided and ID not provided: Operate on the selected element for all generated instances of the same [Data Design](/app-editor/page-editor/built-in-elements/data-design.md) element with the same ID2 value.
* ID provided and ID2 not provided: Operate on the selected element for all generated instances of the same [Data Design](/app-editor/page-editor/built-in-elements/data-design.md) element with the same ID value. Since we recommend the ID value to be unique, this would choose one from all the generated instances of the associated [Data Design](/app-editor/page-editor/built-in-elements/data-design.md) element.
* ID and ID2 provided: Operate on the selected element for all generated instances of the same [Data Design](/app-editor/page-editor/built-in-elements/data-design.md) element with the same ID  and ID2 value.&#x20;

***

## Usage Examples

{% hint style="info" %}
**NOTE: Please refer to the prerequisite information shown** [**here**](/app-editor/page-flow/references/prerequisite-for-dynamic-content-block-examples.md) **before seeing the example.**&#x20;
{% endhint %}

The image below shows an example in which the feedback for the [Input](/app-editor/page-editor/built-in-elements/input.md) element (*Input43*) is set to "Invalid" for Company 2, which is rendered with the ID *ST101*.

<div align="left"><figure><img src="/files/f8nNJ2e3vyBsN8zCXU3L" alt="" width="516"><figcaption><p>Set Input Feedback in Data Design example 1</p></figcaption></figure></div>

The result of the above example is highlighted below, where the [Input](/app-editor/page-editor/built-in-elements/input.md) element (*Input43*) is shown with a red border and red exclamation mark for Company 2.

<figure><img src="/files/R30hK6wDquXZcKwh8dBA" alt=""><figcaption><p>Result of example 1</p></figcaption></figure>

In the second example, we will demonstrate the scenario where neither ID nor ID2 are provided. In this case, the system will set the feedback for the [Input](/app-editor/page-editor/built-in-elements/input.md) element (*Input43*) to *Valid* for all generated instances.

<div align="left"><figure><img src="/files/FzKv0Ha5PDEX0tZXh5ac" alt="" width="455"><figcaption><p>Set Input Feedback in Data Design example 2</p></figcaption></figure></div>

The result of the above example is highlighted below, where the [Input](/app-editor/page-editor/built-in-elements/input.md) element (*Input43*) is shown with a green border and green check mark for both the companies.

<figure><img src="/files/hTfkS6ZWpK4RYEs3ICDs" alt=""><figcaption><p>Result of example 2</p></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.zingy.ai/app-editor/page-flow/toolbox-blocks/set-input-feedback-in-data-design.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.
