Get Element Attribute in Data Design
Last updated
Last updated
Get Element Attribute in Data Design
is an that allows you to retrieve the value of any in elements that were generated using the block and dynamically added to the page or form.
The output is of type and is compatible with of type or of type .
The block consists of the following (from top to bottom):
The above example will result in the variable a being set to https://company2.com
(the URL of Company 2).
The behavior of the block is similar to the block, with some important differences:
Element Selection: You can only choose an element placed inside the selected element.
Works only with elements generated using block that are dynamically added.
Attribute: that accepts a value representing the to set or change the value of.
Data Design: to choose the element whose element you want to target.
Element: to choose the element, within the selected , you want to get the attribute of.
ID: Mandatory that accepts a value representing the unique value that was provided to the block.
ID2: Optional that accepts a value representing the secondary identifier that can be used to identify the desired element. See below for more details.
NOTE: Please refer to the prerequisite information shown before seeing the example.
The image below shows an example in which the variable a is set to the value of the attribute of the element (Company Link) within the selected element.