Get Element Attribute

circle-info

Block Information

Available in: Page Flow

Toolbox Category: Html/DOM

Block Type: Output

Output Type: text

Get Element Attribute is an output block that allows you to retrieve the value of any HTML attributearrow-up-right in elements on a page or form. The output is of type text and is compatible with Value Parameters of type text or of type any.

circle-check

The block comes in two modes which are discussed below.

Mode 1

Get Element Attribute (Mode 1)

The Mode 1 version of the Get Element Attribute block consists of (from left to right):

Mode 2

Get Element Attribute (Mode 2)

The Mode 2 version of the Get Element Attribute block consists of (from left to right):


Usage Examples

The image below shows an example of the Mode 1 version where the variable a is set to the value of the href attribute of a Link element.

Example of Get Element Attribute Mode 1

In the next example we see a Mode 2 version where the variable a is set to the value of the href attribute of the same Link element. This time the element is selected using a CSS Selectorarrow-up-right.

Example of Get Element Attribute Mode 2

Last updated