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.
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.
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.
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).
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.
The component has now been set up to store the learner’s response in the variable.
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.
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.
Your course now shows your hidden content once the learner selects their role type as Senior Manager.
Did this article help?
Let us know by leaving a star rating or review at the top of this article.