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

phale-1444
Community Member Posts: 12 ☆ 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: 27 ✶ 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: 44 ☆ Superstar ☆
-
@susanmacnab Now that rocks! Go L21! Thank you Susan!
-
Categories
- 35.8K All Categories
- 109 ✫ 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