Set Content in Data Design

Block Information

Available in: Page Flow

Toolbox Category: Dynamic Content

Block Type: Regular

Set Content in Data Design is a regular block that allows you to set the content of elements that were generated using the Content from Data Design block and dynamically added to the page or form.

The behavior of the block is similar to the Set Content block, with some important differences:

  • Element Selection: You can only choose an element placed inside the selected Data Design element.

  • Works only with elements generated using Content from Data Design block that are dynamically added.

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

  • Behavior: Dropdown configuration setting that allows you to choose from three options:

    1. Set: Overwrite the contents of the chosen Element with Content provided.

    2. Append: Add the Content provided to the existing content of the chosen Element.

    3. Prepend: Add the Content provided before any existing content of the chosen Element.

  • Data Design: Selectable Input to choose the Data Design element whose element you want to target.

  • Element: Selectable Input to choose the element, within the selected Data Design, you want to change the content of.

  • ID: Optional Value Parameter that accepts a text value representing the unique value that was provided to the Content from Data Design block. See below for more details.

  • ID2: Optional Value Parameter that accepts a text value representing the secondary identifier that can be used to identify the desired element. See below for more details.

  • Content: Value Parameter that accepts a text value containing the content you want to set.


ID and ID2 usage

The behavior of this block depends on the ID and ID2 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 element.

  • ID2 provided and ID not provided: Operate on the selected element for all generated instances of the same Data Design 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 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 element.

  • ID and ID2 provided: Operate on the selected element for all generated instances of the same Data Design element with the same ID and ID2 value.


Usage Examples

NOTE: Please refer to the prerequisite information shown here before seeing the example.

The image below shows an example in which the content of the Text element that displays the current stock price (Text460) is set to 123.4 for Company 2, which is rendered with the ID ST101 .

The result of the above example is highlighted below, where the stock price for Company 2 is displayed with the value we set.

In the second example, we will demonstrate the case where neither ID nor ID2 are provided. In this scenario, the system will set the content of the Text element (Text460) for all generated instances of the selected Data Design element.

In the above image the ID and ID2 value parameters are left blank and the Content value parameter is set to the text "Loading...: .

The result of the above example is highlighted below where the Text element showing the stock price of both companies says "Loading..."

Last updated