Outline
The Action Button component can be used in conjunction with triggers to create a simple button that will trigger an action within your course, for instance, show a pop-up or show hidden content.
This article will show you a simple example to show hidden content, we’ll use this course as a reference.
We will:
- Create an article with an action button
- Create a hidden article, which will be revealed once the action button is clicked
- Create a trigger to reveal the hidden article
1. Create your first article, including the Action Button
- Create your first article
- Once you have added in your required content to your first article you will need to add an Action Button component to the last block in your article
- Select Edit Component and start editing the Action Button component
- Button Tab:
- Add Button Text
- Add an icon
- It is also possible to add images/hover images to the button
- Appearance Tab:
- Set the desired appearance for your button
- Behaviour Tab:
- Set your button action to No Action (this will ensure that any action is controlled by your trigger)
- Set the button completion to Click
- Choose whether to disable the button once clicked
- Button Tab:
2. Create your second hidden article
- Add a new article with your desired content
- Set the article to hidden
3. Create the trigger
You now need to create the trigger to reveal the hidden article
- Select Logic
- Add a new trigger:
- Event: Action Button Clicked
- Condition: Select your Action Button component
- Action 1:
- Set to Show Hidden Articles
- Set the correct hidden article
- 0 ms delay
- Action 2:
- Set to Navigate to Article
- Set the correct hidden article
- 100 ms delay
This process can then be repeated down the page with further action button components and hidden content.
Did this article help?
Let us know by leaving a star rating or review at the top of this article.