Set Input Feedback in Data Design
Last updated
Last updated
Set Input Feedback in Data Design
is a that allows you to set the feedback for , , , and elements that were generated using the block and dynamically added to the page or form.
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 block consists of the following (from top to bottom):
NOTE: , , elements must have their option set to "yes" for feedback control to work.
The behavior of the block is similar to the block, with some important differences:
Works only with elements generated using block that are dynamically added.
Element Selection: You can only choose an element placed inside the selected element.
Data Design: to choose the element whose element you want to target.
Element: to choose the element, within the selected , you want to set the feedback of.
ID: Optional that accepts a value representing the unique value that was provided to the block. See below for more details.
ID2: Optional that accepts a value representing the secondary identifier that can be used to identify the desired element. See below for more details.
Data: that accepts the type of feedback to set.
The behavior of this block depends on the ID and ID2 and is detailed below:
ID and ID2 not provided: Operate on the selected element for all generated instances of the same element.
ID2 provided and ID not provided: Operate on the selected element for all generated instances of the same element with the same ID2 value.
ID provided and ID2 not provided: Operate on the selected element for all generated instances of the same 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 element.
ID and ID2 provided: Operate on the selected element for all generated instances of the same element with the same ID and ID2 value.
NOTE: Please refer to the prerequisite information shown before seeing the example.
The image below shows an example in which the feedback for the element (Input43) is set to "Invalid" for Company 2, which is rendered with the ID ST101.
The result of the above example is highlighted below, where the element (Input43) is shown with a red border and red exclamation mark for Company 2.
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 element (Input43) to Valid for all generated instances.
The result of the above example is highlighted below, where the element (Input43) is shown with a green border and green check mark for both the companies.