How to Create an Action for a Button with Variables

LisaB2022
Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 23 ☆ 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: 16 ♪ Opening Act ♪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: 23 ☆ Roadie ☆
-
susanmacnab Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 16 ♪ Opening Act ♪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
- 4.7K All Categories
- 3 New Feature Releases
- The Training Arcade®
- Arcades™
- 57 ✫ Announcements
- 6 ✪ Contests
- 34.1K eLearning Brothers® Products
- 33.6K Lectora®
- 31.6K Lectora Discussions
- 1.9K Lectora Feature Requests
- 64 Lectora User Groups
- 16 Asset Library
- 10 AssetLibrary Discussions
- 6 AssetLibrary Feature Requests
- 290 CenarioVR®
- 169 CenarioVR Discussions
- 121 CenarioVR Feature Requests
- 29 Rockstar Learning Platform®
- 20 Rockstar Learning Platform Discussions
- 9 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 114 CourseMill®
- 107 CourseMill Discussions
- 43 ReviewLink®
- 31 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 2 The Training Arcade®
- 1 The Training Arcade Discussions
- 1 The Training Arcade Feature Requests
- 10 Additional Learning Products
- 2 Adobe®
- 4 Articulate®
- 2 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 912 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 11 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 546 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 5 Visual Design
- 328 Web Accessibility
- 1.2K ♪ The Green Room
- 7 ♡ Community Feedback
- 7 Community Tips