How to Create an Action for a Button with Variables
LisaB2022
Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 37 ☆ Roadie ☆
This is what I am trying to do with 10 buttons on a page (yup need all 10). I believe I need to create variable, but am not sure where to start.
* When Button 1 is showing content (Content 1)
* And Content 2-10 is hidden
* And another button (2-10) is selected
* Hide Content 1
* And Show related content of button selected
Background
I have created an action where each button toggles to hide and show its own content.
Now I need the content to hide when another button is se lected, before the new content shows.
* When Button 1 is showing content (Content 1)
* And Content 2-10 is hidden
* And another button (2-10) is selected
* Hide Content 1
* And Show related content of button selected
Background
I have created an action where each button toggles to hide and show its own content.
Now I need the content to hide when another button is se lected, before the new content shows.
Answers
-
susanmacnab Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 44 ☆ Superstar ☆Hi LisaB.
To do this I normally create an action group (Insert -> Group) and inside that group I add an action to clear each content. In your case there would be 10 actions.
Then on each of the buttons add the following actions:- Mouse Click -> Run Action Group -> Your group to clear all actions
- Mouse Click -> Show -> The proper content
Hope this helps! - Mouse Click -> Run Action Group -> Your group to clear all actions
-
LisaB2022 Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 37 ☆ Roadie ☆
-
susanmacnab Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 44 ☆ Superstar ☆Hi @LisaB2022. I just thought of something else.
Depending on your needs, another thing you can add to your action group is actions to reset each of your buttons to "normal" state.
It all depends on how you built your page. Also if you're using Lectora 21 and you "group" your buttons, it shouldn't be required at all...
Categories
- 35.8K All Categories
- 108 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products