Triggers
Outline
A trigger listens to a certain event that occurs in an Evolve course. Once the event occurs, the trigger can run its actions if the condition set is met. There are many types of events, actions, and conditions that can be used inside a trigger to create custom behavior within a course.
This article provides you with an overview of triggers and how you can utilize them in Evolve courses.
Trigger overview
A trigger consists of an event, condition, and actions. In the example below, the trigger will set the course to complete once the selected component is completed.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/4445253/page_large/completion-trigger.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzQ0NDUyNTMvcGFnZV9sYXJnZS9jb21wbGV0aW9uLXRyaWdnZXIucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU3NDc3fX19XX0_&Signature=S-1JW2qfq7OtO6zIO5pn0TNCSwtlCIWIJE3W7LoOm7Wa9laqnuIy-OnxDvdmrD~pch38qlM6BmLg1OLFii50Albe8T7fNTubkmySAW7ywxeUc4Asid0Rqt~Lcmi3SKlWzDa06fP6s~3EGnup1G2aDjJ~NDzbAT3WeKwO1YX7nwwgNbHPhnr11cWI7Te71QGT50S2kai-OGeJz4u1lEZqhEVUWGtd6YtbyFAWjCIGAItBWQ2vDRuMgIcBGP0nOvH~PLOgmJNxrFkd5j4Imsv5PoeKwhBLWjXyd~AgjL5gxGDD8hBmqg4Oqu39IflwTBqwmnmzfFLCrlhU7ieA~nU5SQ__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Trigger event: The event is set to Components Completed. That means any time a component is completed in the course, this trigger will check its condition to see if it can run its actions.
There are many types of events available. They are organized by the content type that causes the event to occur.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2004453/page_large/2021-04-13-14-13-59.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDQ0NTMvcGFnZV9sYXJnZS8yMDIxLTA0LTEzLTE0LTEzLTU5LnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTc1NzQ3N319fV19&Signature=LFp29fiJEFGjaLIQur6nCpbIZrLZLZlv~zwETK0TuaP7xxF3uUVGpKzQ9DWYI1RwBEBFNkO~2NyFwfkvHrLBQVUFyoV8cvz8YceJUg8Ge0B5-VuzoI-FGJIy4mStHgzX5DKp0vVsJhf~LBCOEDLFjXbFredjTbdCbRqrrK39QEBeCqOhD5-zOHgOt3A3YTgy5y8a3R8CHCtaoALTPhFTKjDxIcw5VDOuJSpCT3hmVNo0VSzfRwiX9sB9jpDk-jUmTKOUVTXv6xPSPcMxpxF9MYCsvOfHYy89vjVjRZGYUqSTn9V7G2jZQqsYww2dsTdkNWcdYAaCr-0kJUwniUGWrA__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Trigger condition: The condition changes depending on the event type selected. The Components Completed event requires a component to be selected in the condition.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2004457/page_large/2021-04-13-14-14-38.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDQ0NTcvcGFnZV9sYXJnZS8yMDIxLTA0LTEzLTE0LTE0LTM4LnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTc1NzQ3N319fV19&Signature=LZ5~yaNyGOpUAtq5Jj9uULj2ZNG1Hi8tydlshV~1fivmr0S0Ve5IMBDdLdX~hKy5tNH78ovHp~xqi4Orqtw~JrVoE1hwvQdaT8EF4cvBA9yhVsOMY0HET-FbnVhLAzDZrKZkI2gAzM4scJhkkiPOruYwhv0OHmx-VZCSLglQ1iYBV4zslCnhb2bwlBsr3EDRiRFFIysod2cEPPoU-K~NY6vr-GL~Ln6lPvNk6n0xW7bEjApZm3wNIObeUd5vyq5MX6Dpb4iAJj3N1jwZh-4CqdKQ4C1hNAge-UcIK8VNV50jNuCJetmSoC8Vvx~5SGWoB0yo7XYmNzngk-b0A5MylA__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Trigger action: The action section is used to tell the course what action to take once the condition has been met. In this example, there is a single action that sets the course to complete once the component has been completed.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2004459/page_large/2021-04-13-14-15-41.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDQ0NTkvcGFnZV9sYXJnZS8yMDIxLTA0LTEzLTE0LTE1LTQxLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTc1NzQ3N319fV19&Signature=Di4qqhJ2nxFez2mfmqHlIPGmPMK6Nl8oX-qexFcDa3X21gsfp2SCq5QCkN0Ba1QLwPI3Xp7oszlKXKEJLpJ4N4Y7RxyQLYRwVLpKyIJkSrZL79OuDdNFIU3HzXf8FU3daxA3P5ZAVB6mU-Q7kmmR-W7Wq4OyQzmlUGMrYaR4d96FtpnsCrc1PVZGQi0-DV51Xar5cKkx5Mawc~ikr05dudHdwibLjPMKmNpFIAfzo2PGmseNgQH~XDBX9W5eT506X9qDDaaypE0JpUhQ8NX8zvvMgwS1qR2rs~RtTKWk-o-eBrzh2Z8f9VLwdFR6Ood24n3wTRgfQaC1YV0hW4GrVg__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Trigger events
A trigger event is an event that takes place in the course, usually based on the input of a learner. For example, a component is completed or when a page has loaded. There are many types of events that can be used inside a trigger.
The diagram below illustrates what happens when a user completes an accordion component in a course with two different triggers that are both watching for the Component Completed event.
Trigger A: The course is watching for the Text Component to be completed so it does not run the action.
Trigger B: The course is watching for the Accordion Component to be completed, which the user has done, so it does run the action.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2004467/page_regular/2021-04-13-14-17-50.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDQ0NjcvcGFnZV9yZWd1bGFyLzIwMjEtMDQtMTMtMTQtMTctNTAucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU3NDc3fX19XX0_&Signature=W3wQWLLKMUQw-C4FuARiChiXcqw3oKrf24jPPmRMRRH4kcDCThbVcrH~YBs84m43Fa8oxJjOXiZ8ZPO~j5oAPLfha5Tk2N42huNc7sq9D0lQZoUvn~MUK6ZMBWsKyuRti~N35iijamTUgSX1-w33O6QKY5n7sNBBmZnfIJR0~k7kN9skXQrsGB86~eN6M5Fa9aZUGpdbTzrysfk4YFBqwQWUYKey6dEwTo~HatgI0xttkc75XbT2UnFMIQ50PnUAmpoW52apaEwekRPu3Q~JZHc2W9S6SOTfc~O1lU4IXv6zKp6wM4iUQlyyXaT2-gUKyXQzVnutHeNFw3a-3cGEog__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Trigger events breakdown
The breakdown below lists all possible event types a trigger can use, as well as what the trigger will evaluate before calling its actions.
Component events
- Components Completed: If any or all the selected components have been completed.
- Components Started: If any or all the selected components have been started.
- Components Viewed: If any or all the selected components have been viewed. (This event will only work once the course has been published).
- Components Correct: If any or all the selected question components have been marked as correct and completed.
- Components Incorrect: If any or all the selected question components have marked as incorrect and completed.
- Action Button Clicked: Select an Action Button from your course that must be clicked.
Page events
- Page Loaded: If the selected page has loaded and/or when a page becomes loaded once all components on that page are ready to display.
- Page Unloaded: If the selected page has unloaded and/or occurs when the page is navigated away from.
- Pages Completed: If any or all of the selected pages have been completed.
- Pages Viewed: If any or all the selected pages have been viewed
Topic events
- Topic Loaded: If the selected topic has loaded.
- Topics Completed: If any or all the selected topics have been completed.
- Topics Viewed: If any or all the selected topics have been viewed.
Article events
- Articles Completed: If any or all the selected articles have been completed.
- Articles Viewed: If any or all the selected articles have been viewed.
Block events
- Blocks Completed: If any or all the selected blocks have been completed.
- Blocks Viewed: If any or all the selected blocks have been viewed.
Variable events
- Variables Changed: If any of the selected variables value has changed and if all the comparisons of the selected variables pass.
Extension events
- Course Assessment Completed: When the course assessment extension is set as complete. This event will be called again if the assessment is reset then completed.
- Course Assessment Passed: When the course assessment extension is set as passed. This event will be called again if the assessment is reset then completed.
- Course Assessment Failed: When the course assessment extension is set as failed. This event will be called again if the assessment is reset then completed.
- Course Assessment Reset: When the course assessment extension is reset. This event will be called again if the assessment is failed then reset.
- Course Attainment Completed: When the course attainment extension is set as complete.
Trigger actions
Once the trigger’s condition is met, the actions set in that trigger will be run. There are many types of actions such as displaying a hidden component, navigating to a page, or setting the course to complete.
Actions are called as soon as the trigger’s condition is met. In some cases, it can be useful to delay the action by a certain amount of time. In the example below, there is a delay before navigating to the article. This can give some time for the article to load any assets before navigating to it if it’s on the same page.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2004519/page_large/2021-04-13-14-37-12.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDQ1MTkvcGFnZV9sYXJnZS8yMDIxLTA0LTEzLTE0LTM3LTEyLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTc1NzQ3N319fV19&Signature=OIVygWj3F3a0adpj1nZ6HrLkX1Z39mNBHJME-oLtGndqIIv16P3k9CqffrZEOS21ee2cbz~mKhupOxVhMzWDoAt0Rliuiz8aYfXGFny67JacQNaHUDym5EUXZCpXokV0tWVbcuGS9Q7J7CIXmJqPbJN3lnNDYvF1dWzWK6UMdu6zZQIVo~TArbFzJ9pMAY78a3kOiBZ3clmWEMYlKqNCCqW8QNu3mnTFmJfUGLozZTEQPyln3zoNbv25hMIqjwlbDj9ACBtH45wvypTq6LyUKr8HEQngtl15K40IKbsJVthU18KxeySWimf-v5Rc-Ospr0q6jo51y1NEIhOzS5c2dw__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Trigger action breakdown
The breakdown below illustrates all possible action types a trigger can use.
- Set Course To Complete: Sets the course to be complete. This should be used alongside the Logic Completion option in the “Select How Your Course Should Set A Status” publish option.
- Set Course To Passed: Sets the course to be passed. This should be used alongside the Logic Completion and Logic Passed/failed option in the “Select How Your Course Should Set A Status” publish option.
- Set Course To Failed: Sets the course to be failed. This should be used alongside the Logic Completion and Logic Passed/failed option in the “Select How Your Course Should Set A Status” publish option.
- Set Course Progress: Sets the course progress towards completion. The progress is taken from the selected variables value.
- Progress can be set as a percentage. The percentage will be based off the Max progress value provided. The Max Progress is the maximum value that can be set.
- Setting a Max Progress of 100 will mean that if the selected variables value goes above 100, the progress set will still be 100. (note: this behavior occurs when not saving as a percentage of the Max Progress)
- This should be used alongside the Logic Completion or Logic Completion and Logic Passed/failed option in the “Select How Your Course Should Set A Status” publish option.
- Set Course Score: Sets the course's score. The score is taken from the selected variables value. Score can be set as a percentage. The percentage will be based off the Max Score value provided.
- The Max Score is the maximum value that can be set.
- Setting a Max Score of 100 will mean that if the selected variables value goes above 100, the score set will still be 100. (note: this behaviour occurs when not saving as a percentage of the Max Score)
- This should be used alongside the Logic Completion or Logic Completion and Logic Passed/failed option in the “Select How Your Course Should Set A Status” publish option.
- Reset Course: Resets the course to its original state. This also resets all variable values to their default value.
- Reset Components: Resets all selected components to their original state.
- Show Hidden Pages: Shows all selected hidden pages. Pages can be hidden using the page builder or the Hide Pages action.
- Show Hidden Articles: Shows all selected hidden articles. Articles can be hidden using the page builder or the Hide Articles action.
- Show Hidden Blocks: Shows all selected hidden blocks. Blocks can be hidden using the page builder or the Hide Blocks action.
- Show Hidden Components: Shows all selected hidden components. Components can be hidden using the page builder or the Hide Components action.
- Hide Pages: Hides all selected pages.
- Hide Articles: Hides all selected articles.
- Hide Blocks: Hides all selected blocks.
- Show Dialog: Displays a dialog pop-up. Dialogs can be created by going to the Course builder, clicking Edit Course Settings, and finding the Dialogs section.
- Hide Components: Hides all selected components.
- Navigate To Page: Navigates to the selected page.
- Navigate To Article: Navigates to the selected article.
- Navigate To Block: Navigates to the selected block.
- Navigate To Component: Navigates to the selected component.
- Increase Variable by Value: Increases the selected variables value by the provided numerical value. Only a number type variable can selected.
- Decrease Variable by Value: Decreases the selected variables value by the provided numerical value. Only a number type variable can selected.
- Set Variable Number: Sets the selected variables value by the provided numerical value. Only a number type variable can selected.
- Set Variable Text: Sets the selected variables value by the provided text value. Only a string type variable can selected.
- Set Variable True or False: Sets the selected variables value by the provided boolean value. Only a boolean type variable can selected.
- Enable Trigger: Enables a trigger. Once a trigger is enabled it will start “listening” to events. Triggers can be manually enabled in the logic section of the course editor.
- Disable Trigger: Disables a trigger. Once a trigger is disabled it will stop “listening” to events. Triggers can be manually disabled in the logic section of the course editor.
- Set Article Style: This can be used to change or set the article style applied to a specific article, as well as the theme a learner sees, for instance for accessibility or locale purposes.
Debug a trigger
You may need to debug a trigger if your course isn't behaving in the way you expect it to. The Live Preview tools can display how many times a trigger has been activated and its enabled/disabled state. A trigger can also be manually activated, this has no effect on the source of the event, only the actions are run. The log section also shows when a trigger was activated.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2004581/page_regular/2021-04-13-15-00-39.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDQ1ODEvcGFnZV9yZWd1bGFyLzIwMjEtMDQtMTMtMTUtMDAtMzkucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU3NDc3fX19XX0_&Signature=WHUlAwSnCnGUjrhkJm6GVrCIzcZ8EIOy9rmp~LzF4fWnc0PFqAqgUuVd1Sgl~wrWABDD1qHHSwhgI5LzqU5gjv18MimHfSg8qLq4qk1Js3j3ZFoPvQ6hc2peT1ZPUA2SnrK5wI6E6fAhHpWldZjr865Ay7gKke-q0b1M34uonwGlGB7ba-TCIV-GFzM9zq7uaFx2ea4EenrR4Z9ok2vSbuvqKCb6gqfBWQu8IwgtFDzXtQPRJz6p-328gOKA4o5cHFnseKhUxHZ7oNgHxTykiVbE0z~DomBFlnktkaht-fheWJjMlaXd9wgtx0VTjJmGwjpOt7r-5Mf7j0tmyu8bww__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Use triggers and variables together
Triggers and variables, when used together, can provide advanced behaviors in a course that was previously only possible by adding new features to Evolve.
Below is an example of using 3 triggers with variables to create a quiz that has a pass mark. The course should only set as complete once all questions have been completed and the score is greater or equal to the pass mark.
- The first trigger listens to when components are completed. If all the selected components are complete the action sets the selected variable “Quiz complete” to true.
- The second trigger listens to when question components are marked as correct. If any of the selected components are marked as incorrect, the action increased the value of the selected variable “Score” by 1.
- The third trigger listens to when variables change. If any of the selected variables change and all the variable comparisons evaluate as true, then the actions are run.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2004593/page_large/2021-04-13-15-04-01.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDQ1OTMvcGFnZV9sYXJnZS8yMDIxLTA0LTEzLTE1LTA0LTAxLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTc1NzQ3N319fV19&Signature=O9vKGlA40r0NYRIpjZ3NF~BiH0hN~rLlm4HO8TaOlvytfNi6ezQAKOmjZnxkfv8oY5SjVSHjdhk-BVloVgZmH7S0bT6UNFnlGN9WZWczDqTndBi1h0ng7xdwXYJt74kGd~bWeTYxpgcmHNzJ6H3S3u8g88bhU8kwk31ajrOed5D4q0O1nlk-Zq4Ng2msPeFBkOFu-gcDI6rSeTB8z6U0RvTnahINVLwyw-q63SPcMrK-iQsJdR2QU8PYb0JTZFnO~fODa02pnzGBRvx8eF4t5R8gfbk0nQOjpzf8~ieTSvvebERXIM6Fq2kjiEFT5~x0varG7gayMa4KjvZqP7XTtA__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2004175/page_regular/2021-01-12-16-27-13.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMDQxNzUvcGFnZV9yZWd1bGFyLzIwMjEtMDEtMTItMTYtMjctMTMucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU3NDc3fX19XX0_&Signature=Eu8d39F6UdZykPihmPUhPgwxmqgzxvNQJrBMBNofqmcc-V6I0DUaylEJ8wbSyBcgkyk2CKWRbvZ8Q4hJJEUgO6nvNOIRSw4nCYcBDwUQrUTQ~0uvN5bnii1IlJO4FBK9S2Q9PP5JIkBLaIWFp3Wbh4s2hhoNykNTnW3i6vy7W7lwjxHWKV~fmQwi7vw5W~UQuGxEocXYPjS13M2B37UdskstO4yyDe0NLUm84llMiEvrbnIqYtXi87Y8QhQaI8xRcjAX3qx7BYzSqBBIxgnv56UnCVwULCMmnfi0kP6~C9f4~dTNQHr8lc9E6~1M3uXTJdvV3KY0rn3UyEDzYJyYlQ__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Did this article help?
Let us know by leaving a star rating or review at the top of this article.