Future Triggers
Some triggers, like timer and exit-intent triggers are defined on the modal directly. Others are defined on separate elements such as button elements.
SA5 supports both manual triggers automatic triggers.
Manual triggers are intentionally invoked by the user as part of the user flow, and will be invoked even if the user repeats that flow multiple times.
Automatic triggers occur outside of the user action, and should not occur again if the modal has already been invoked ( manually or automatically ).
Trigger | Notes | Type |
---|---|---|
button | Triggers the modal when the user clicks on a button or other element that is tagged. | manual |
| Triggers the modal when the user submits a form. | manual |
| Triggers the modal when a timer has elapsed, starting from page load. | auto |
| Triggers the modal when the page has been scrolled x%. | auto |
| Triggers the modal when a certain element is scrolled into view. | auto |
| Triggers the modal on exit intent. | auto |
Multiple triggers can be applied to the same modal, for example, two button triggers, a timer, and a scroll trigger can all invoke the same modal. To support this, the attributes for each trigger type are discrete ( see below ).
? Consider trigger once rule
Last updated