Adding conditions based on page status.

Shannon_SLU02
Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 5 ☆ Roadie ☆
I created a main menu page that displays three menu items. In order to prevent learners from jumping to the end of the course, only one menu is active. These menu items are not buttons, rather images with text; the "on click" action is set on the text. If the learner revisits the main menu again later, I would like all the menu items active. Is this possible?
The process I've tried:
created duplicate menu items, e.g., 2 without menu actions, 2.2 with menu actions.
main menu page action set on show, show menu 2 if the page status equals not started, else show menu 2.2
I've also tried:
created duplicate menu items
main menu page action set on show, show menu 2 if the page status equals not started, else show menu 2.2
main menu page action set on show, hide menu 2 if the page status equals completed, else hide menu 2.2
I feel like this process is simple but somehow, I cannot figure it out. Any input would be helpful.
Thank you.
The process I've tried:
created duplicate menu items, e.g., 2 without menu actions, 2.2 with menu actions.
main menu page action set on show, show menu 2 if the page status equals not started, else show menu 2.2
I've also tried:
created duplicate menu items
main menu page action set on show, show menu 2 if the page status equals not started, else show menu 2.2
main menu page action set on show, hide menu 2 if the page status equals completed, else hide menu 2.2
I feel like this process is simple but somehow, I cannot figure it out. Any input would be helpful.
Thank you.
Tagged:
Best Answer
-
Hi @Shannon_SLU02 Creating menus based on visited states can be tricky. I notice in particular that you used images instead of buttons, but buttons have the best function states to build a menu like this, and you can set your buttons as images! I added a sample built in Lectora 21.2. Basically, create a button, then on the Style tab, change the fill to be your image. You can resize it and change the corner shape too. Next, tap on the States area and change the Disabled state to Custom. I changed the opacity to 40 to represent disabled. Then added 2 actions to each. First, I set OnShow ThisObject (note not page) Set state to Disable then added the condition IF Page (page that must be visited first) is Not Started. The second action is OnMouseClick GoTo Page. The mouse click won't work if the button is disabled. I repeated this for the other buttons. Please note that in top-down order, the OnShowThisObject should be first, then the OnMouseClick action.
For images that you do not want to be shown, use similar logic by setting the property to Initially Hidden, then instead of the OnShowSetState, use OnPageShowShow Button IF DependentPage IS Complete. This will show the image button and then be active.
Button 2 in the sample has this functionality.
I hope this helps!
Sheryl
Answers
-
Shannon_SLU02 Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 5 ☆ Roadie ☆
Categories
- 4.8K All Categories
- 6 New Feature Releases
- The Training Arcade®
- Arcades™
- 125 ✫ Announcements
- 9 ✪ Contests
- 34.1K eLearning Brothers® Products
- 33.6K Lectora®
- 31.6K Lectora Discussions
- 1.9K Lectora Feature Requests
- 71 Lectora User Groups
- 17 Asset Library
- 10 AssetLibrary Discussions
- 7 AssetLibrary Feature Requests
- 304 CenarioVR®
- 178 CenarioVR Discussions
- 126 CenarioVR Feature Requests
- 40 Rockstar Learning Platform®
- 28 Rockstar Learning Platform Discussions
- 12 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
- 44 ReviewLink®
- 32 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®
- 932 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 11 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 545 Learning Management System (LMS) Integration
- 3 Mobile Learning
- 22 Visual Design
- 331 Web Accessibility
- 1.2K ♪ The Green Room
- 8 ♡ Community Feedback
- 7 Community Tips