Triggers and Actions
Triggers and actions are used by document authors to dynamically control what happens in the student’s browser.
Note: Triggers and actions do not support all the server side Obojobo Events. See the supported values for
type
on action’s documentation.
Triggers
A trigger node listens to a certain event and performs an action when it occurs.
Actions
An action is the change that occurs as the result of a event being heard by a trigger.
Example
Below is an example of a Button that starts an assessment when clicked.
<ActionButton label="Begin">
<triggers>
<trigger type="onClick">
<actions>
<action type="assessment:startAttempt">
<value id="assessment">
</action>
</actions>
</trigger>
</triggers>
</ActionButton>