Use Triggers to Show Hidden Content
Outline
In this article, we'll provide an overview of how you can hide content within your Evolve course and reveal it based on a trigger.
Overview
In Evolve, it is possible to hide content within a course and show it to the learner based on their actions. For example, you may want to create a course that only shows a learner content based on their role type.
This is possible by hiding content in a course and showing it once a trigger has been met. In this example, we'll show you how to show a learner content based on the fact they are a senior manager. This will include:
- Creating a variable along with a component to store the variable results
- Hiding content
- Creating a trigger that shows content once the variable has changed
Create the variable
First, create a variable where the learner’s role type will be stored.
- Go to Logic in your course.
- Click Variables.
- Click Add Variable.
- Give your variable a title, for example, learner role.
- Select your variable type. In this instance we’ll need to choose string - this means the input will be saved as text.
- Set a default value, for example, your role. The default value is the text that will be shown until the learner inputs their response.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2013225/page_regular/2021-04-12-15-56-23.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMTMyMjUvcGFnZV9yZWd1bGFyLzIwMjEtMDQtMTItMTUtNTYtMjMucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU2NzM1fX19XX0_&Signature=BOPYHom5fJNvHPgsBjigC97DxJX52mHAnw-psXdsq2eDvrAebaqTvPsYbuG9ErjF2NNI5BnPeo1aFALw7wEMsVjNEytOpHvGZ9fHZt6Bdm-KL61jqODkxNyWGzJ08Y8G6U1wio2fuOi2kLs03EsxpB7Wlz3gFSzBci4vLRhVuIeToPYNpKsvhcIc4UC4WXBMoErYMdF5irbG2qmFxXbaZd5~aPHRkn8UNKCLX0D-evgIx2TzHA4qbQZn3fJEU0W3CXulYgXhPdU7VEgxCiBav6RpCMirdovrwwW62eqTdKYrXXy~9dnSQRUVnNba5tM7XhulzEd9xWBIB3lN91Fsvg__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
You’ve now created your variable and it’s ready to be used in a component.
Save the learner response
To store a learner’s response to a variable you need to use a component that allows you to save inputs to a variable. This is the component that will trigger the hidden content to be shown.
To get started, head over to the page builder and click Add Component. In the Component Filter dropdown, choose Variable.
You will then see a list of components that allow you to save responses to variables, find Radio Group, and add to the course.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2013227/page_regular/2021-04-12-16-11-04.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMTMyMjcvcGFnZV9yZWd1bGFyLzIwMjEtMDQtMTItMTYtMTEtMDQucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU2NzM1fX19XX0_&Signature=O9AZXkXS7T3ncKYK9s-2UJPZpFATmC6wlmKZbXuE-q5c66Z9jxlulrWAhu13Q~EwoBTasfWJ4Ki09acaroorpJBPuPm7aUR1O0emrnaActfE6gPfVyR~VoNxHljaVuZjmAfEGfpL8chulx57CKnEyOF4ZXnwVA4OgolCrv7HxEzj4HR0q2mPb5iRxKQ1hBsgWBSJaMmIrBPmedhVnl0LuItD6U9kMJmadbfuWIGnBwohKrQNAbeSORo4nyQiC8ZmExvawv-~Q8e13BZXGbk~CJGv2zuhx-QpAUWnGlWzj~RyFAbFa0~exxsWr60Cwqthu0CxHbERxRG2dmEKNnImGQ__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Once added to your page select Edit Component so you can set it up. In the component, you will need to set up each tab according to your needs.
First, we’ll focus on setting up the Radio Options tab:
- Click Add Radio Option.
- Add in Option Text - this will be the text visible to the learner.
- Add in Option Value - this will be the value used in the trigger (option text and option value can be the same).
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2013229/page_regular/2021-04-12-16-12-40.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMTMyMjkvcGFnZV9yZWd1bGFyLzIwMjEtMDQtMTItMTYtMTItNDAucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU2NzM1fX19XX0_&Signature=Yyowsa8sm~K53WEatBvPvzXxZ84Ph~N9~LzEd-ASqB8F1o-4KSdti-uZ9aK6uDdxZWvnB19UZ5YU29UFqT3AcZ~wOpsHxUQ~HTuDZNCNbhyW8kxY4XDgURe2EROY-SZsLWcKOHdtnoEiiyLus~0I2GZUT7om52Ze1Qzc1CvkW5gOkEpG4-GawyXQTPu06ou7ZJEt4RAihxL2pESthrCx8drQhmpE1sRchyE4rOU8GL-JqnMKhsxGNX2jzTO8~YIirFtwFL~qlMNNbgfYvtIHKIBTruIxuk9OLvr9cPyWpTqC8D4oCKN7TW6GcJzSX4aGcnVmbaBCX7UIDFqURE3X-Q__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
In this example, we’ll use Manager and Senior Manager as our options. Next, we need to set up the Behaviour tab in order for the input to be saved to the variable:
- Enable Save User Answer to Variable?
- From the dropdown select the variable you wish to save to, which in this case would be learner role.
- Keep the variable save type as replace.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2013231/page_regular/2021-04-12-16-16-06.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMTMyMzEvcGFnZV9yZWd1bGFyLzIwMjEtMDQtMTItMTYtMTYtMDYucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU2NzM2fX19XX0_&Signature=OPXbA69M4xKn~cxX2cZDWDnnhKucq-H-pZ~SHjKgn7jgKTzd9oYa1NcULctAzbIGla39NlhSJ0ttZnlLADmTOUgCtKljP58PhPtlWPtoRPknYrpM0NE81mtmWZlgoGHcCvk3IadT434vHHZQC-2BL3eHhb4EWSuRQxUbzS7SJejeCX27WEIOPQiyCV4IfeWzNEjVXyA1ykXsTaF7et86-PLXmJG6VKhKKux7ACGJKQYf8TmP1bUk~9NrtsrUpYj2Ro-iPBfzkBIN8k8JPcdc0x5emKOYe3KxsRTOLn-sJbQ959R8aWtSQpfdBijvaUqFP7vsQE-S7SYJyvC0gLbmLA__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
The component has now been set up to store the learner’s response in the variable.
Hide content
Once you have created the content you wish to hide, you will need to set it to hidden*.* To do this, follow the below steps:
- Head over to the page builder*.*
- Select the Hidden toggle on the item (page/article/block/component) you wish to hide. For example, to hide the content for senior managers.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2013233/page_large/2021-04-12-16-19-47.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMTMyMzMvcGFnZV9sYXJnZS8yMDIxLTA0LTEyLTE2LTE5LTQ3LnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTc1NjczNn19fV19&Signature=XsZTpMXDHgbhK5MW44RWQeSgy0Pgh8PPCx~FZXvuOslYUjQB95EHp9y7CbsKlNklYHWU~tcj5O4FeJ4TRoQsy9c~QI-IOXGJFPSBhPugfI7uUxmboIIsg0toXsJWszIiOnQdqRDNuvkX59SzfqOXTuaknSwhyPFB0dMuwrqBkriR~fit~dSnppMfkwy2OxM6025OP3hkafsaz4u7OIw0bC6WV9xrvc9ENSxGKEjFAlWXhjVDl4GshRt6J6wU8haXNhQVmtZOj9oaYirLJxDWzvd~6ryqPvDZwpFO1oqXHlEwJC5r2byM4ZzjeTPHTInvlBiizXUV2px6HGGp3FOQdQ__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Ensure the content you are hiding has been named accurately. To note, this change will remove the content from the live preview of your course.
You have now hidden the content and can begin to create the trigger.
How to create the trigger
The trigger that will be created will be:
Event: Variable Changed
Condition: Choose the variable that needs to be tracked
Action: Show hidden content and navigate to the article
- Add Trigger
- Name Trigger
- Change Event to Variable Changed.
- Set the variable to watch as Learner Role.
- Select Add Comparison. Set the Comparison to Equal to. The value should match the value of one of the Radio Group component options — in this instance, we will use Senior Manager.
- Add a new action and search for Show Hidden (select the correct option depending on the content item you have hidden).
- Select the item to show and add a delay if you wish
- Add another new action and search for Navigate to (select the correct option depending on the content item you have hidden).
- Select the item to navigate to and add a delay if you wish.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2013235/page_large/2021-04-12-16-34-01.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMTMyMzUvcGFnZV9sYXJnZS8yMDIxLTA0LTEyLTE2LTM0LTAxLnBuZyIsIkNvbmRpdGlvbiI6eyJEYXRlTGVzc1RoYW4iOnsiQVdTOkVwb2NoVGltZSI6MTcyNTc1NjczNn19fV19&Signature=ZUD6COFVz7aOEs5e4nmPsfcd76dd0ygLVlJ0Z5Ufc9uo26Rkx1VSWG~vwmPLmFFa10VDom91VMLflNex0mLgDLyNCuwMAuFguFTHw7bkkCsSCIAwSJGK04SBGS2eTHNWh0cBuEDZsdCJMgAb2EVigPjSCkNN~bXruJw6r2MYu3Z85FIuXA~hd7GNqw~G7Yw2pL9uyTXPGu9e3SHyQc4srEFoFQ7O8iXw4xUORjzZLZiycv-IPx31x-qPqc0rL5EMp~cIJFoZrhTX1SaenPnvXFGiyApG14DaB2kJrMyO1OK-R65AQ7OdXPSPjVHYm2AoLhHJhMebfwpUu2~4WKlJrw__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Your course now shows your hidden content once the learner selects their role type as Senior Manager.
![](https://cdn.exceedlms.com/uploads/resource_images/targets/2013237/page_regular/2021-01-12-16-27-13.png?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4uZXhjZWVkbG1zLmNvbS91cGxvYWRzL3Jlc291cmNlX2ltYWdlcy90YXJnZXRzLzIwMTMyMzcvcGFnZV9yZWd1bGFyLzIwMjEtMDEtMTItMTYtMjctMTMucG5nIiwiQ29uZGl0aW9uIjp7IkRhdGVMZXNzVGhhbiI6eyJBV1M6RXBvY2hUaW1lIjoxNzI1NzU2NzM2fX19XX0_&Signature=V6ufVkTVlqg4yTf9rxmypB8~V0XqLxOzabKyEgRwoWNiW54dTIwCuSGbNs6Ol2Z~fP20sfOxRvFZX~98xE4Sof-oaSg-pZd86RL~~HQ84oEiBbUCX9TnUemKco62k1tFK-cNjZrcaXd-cTMAD24QcrGtRKBSHRUYrFME4~AfSqcf4xNr~YI0IzGGaIllP7Jpyvfh~HI5UzracZbMPwKcrqgWXJv~ThjnqIvAX4cfeBumR3HopSjf57RwrpQbEGMCdgeJqAuWATvgSop-jAJRGr3VmA8M01BHIY9jMzp1YYI5WgkMNA3a90a2QVmHxp4FwIo2UZXPH7lQOLaNAbFTfQ__&Key-Pair-Id=APKAJINUZDMKZJI5I6DA)
Did this article help?
Let us know by leaving a star rating or review at the top of this article.