Click Actions
In Edit mode, you can assign actions to widget indicators that trigger, when users click the indicator in Browse mode.
To add an action, click the Click Actions field.
Then click the + Action button.
Available actions:
You can reorder added actions by clicking and holding an action, then dragging it to a new position in the list. The order of actions in Edit mode matches their display order in the context menu in Browse mode.
To remove an action, click the Delete button.
Click Actions in Browse Mode
To execute an action, click the widget indicator to which it is assigned. If widget filtering is disabled and only one action is assigned to the indicator, the system executes it immediately. If multiple actions are assigned and/or filtering is enabled, a context menu button appears. Click it to open the list of actions.
The image below shows an example of a completed action — the view opens in a side panel.
Click Actions in YAML
To add a click action, use the keys listed in the table. Specify these keys within the onClick block. The following keys apply to all click action types:
| Key | Type | Definition |
|---|---|---|
| name | string | Click action name |
| type | enum | Click action type: - OPEN_URL — Go to the URL- UPDATE_VARIABLE — Update Variable- EXECUTE_SCRIPT — Run Script- OPEN_VIEW — Open view |
Detailed YAML configuration for each click action is provided on the respective action pages.
Was the article helpful?