Update Attribute Action
Dynamically modifies an HTML attribute on a target element.
Useful for changing image sources, links, ARIA attributes, and custom data-*
attributes.
Action Settings
Option | Default | Type | Description |
Attribute Name | None | Text Field | Specifies the name of the HTML attribute to update. This can include standard attributes like href , src , alt , title , or custom attribute. |
Value | None | Text Field | Defines the value to assign to the attribute. If Toggle is selected under the Action setting, this value will be used to add or remove the attribute dynamically. |
Action | None | Dropdown Selection | Determines how the attribute should be manipulated. Update: Sets the attribute to the specified value. Remove: Deletes the attribute from the element. Toggle: Adds the attribute with the given value if it does not exist, removes it if it does. |
Applied To
Select the source element where the action will originate. This determines which block or element will perform the specified action when triggered.