Get Element Attribute in Data Design

Block Information

Available in: Page Flow

Toolbox Category: Dynamic Content

Block Type: Output

Output Type: text

Get Element Attribute in Data Design is an output block that allows you to retrieve the value of any HTML attribute in elements that were generated using the Content from Data Design block and dynamically added to the page or form.

The output is of type text and is compatible with Value Parameters of type text or of type any.

The behavior of the block is similar to the Get Element Attribute 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):


Usage Example

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

The image below shows an example in which the variable a is set to the value of the href attribute of the Link element (Company Link) within the selected Data Design element.

The above example will result in the variable a being set to https://company2.com (the URL of Company 2).

Last updated