L21 Button States: Visited: How do I get it to work?

phale-1444
Community Member Posts: 10 ☆ Roadie ☆
Hi Support Team!
I have L21 and am working in button states. When I select a button it shows as selected, but when I click on another button the mentioned does not change to visited. It remains as Selected. I have "Selected" and "Visited" enabled in the properties as well as the standard four. Is there something else I need to do?
Thank you!
I have L21 and am working in button states. When I select a button it shows as selected, but when I click on another button the mentioned does not change to visited. It remains as Selected. I have "Selected" and "Visited" enabled in the properties as well as the standard four. Is there something else I need to do?
Thank you!
Tagged:
Answers
-
chrystalb21 Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 24 ✶ Headliner ✶Hello phale,
The short answer is you have to use an action to change states.
This may be more information than you need, and there may be others who have a better/different way to do it, but may this help new users who see this as well.
When I do something like this I use a variable for each button and a variable to determine which button is active.
For all, I set the initial value to 0, and retain variable value between session is unchecked
Example for two buttons:- Button1Viewed
- Button2Viewed
- ButtonState
In the following, when you see X, it stands for the button number.
Important: The order of action 1 and action 2 makes a difference, if it's switched, the button state will be Visited instead of Selected.
For each button:
Action 1: SetStateButtonXVisited- Action: Set State
- Target: ButtonX
- State: Visited
- Condition:
- Variable: ButtonXViewed
- Relationship: Equal To
- Value: 1
- Action: Set State
- Target: ButtonX
- State: Selected
- Condition:
- Variable: ButtonState
- Relationship: Equal To
- Value: X
The button actions as follows:
In the following, when you see X, it stands for the button number.- Action 1 (SetButtonXViewed)
- Trigger: Mouse Click
- Action: Modify Variable
- Target: ButtonXViewed
- Type: Set Equal To
- Value: 1
- Trigger: Mouse Click
- Action: Modify Variable
- Target: ButtonState
- Type: Set Equal To
- Value: X
- Condition:
- Variable: ButtonState
- Relationship: Not Equal To
- Value: X
- Else Action:
- Target: ButtonState
- Type: Set Equal To
- Value: 0
- Trigger: Mouse Click
- Action: Run Action Group
- Target: Toggle
Add an action group (ResetButonState) with actions for each button:
In the following, when you see X, it stands for the button number.- Action: Modify Variable
- Target: ButtonXViewed
- Type: Set Equal To
- Value: 0
- Action: Set State
- Target: ButtonX
- State: Normal
Action:(RunResestButtonState)- Trigger: Show
- Action: Run Action Group
- Target: ResetButtonState
Chrystal - Button1Viewed
-
@chrystalb21
Bummer; I thought the answer would be simpler, as with the Normal, Over and Down states. But I get it. I will give your method a whirl. Thank you SO much for your time and support!
Warmest Regards,
Patty -
susanmacnab Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 16 ♪ Opening Act ♪
-
@susanmacnab Now that rocks! Go L21! Thank you Susan!
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.5K Lectora Discussions
- 1.9K Lectora Feature Requests
- 64 Lectora User Groups
- 16 Asset Library
- 10 AssetLibrary Discussions
- 6 AssetLibrary Feature Requests
- 293 CenarioVR®
- 171 CenarioVR Discussions
- 122 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
- 545 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 5 Visual Design
- 329 Web Accessibility
- 1.2K ♪ The Green Room
- 7 ♡ Community Feedback
- 7 Community Tips