Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
group conditional for all buttons clicked?

This may seem pretty basic but is there a conditional that will trigger once all buttons in a button group have been clicked on?
I tried just checking each button's state but the most recent click appears as "selected" so we never really have all buttons in "visited" state.
I keep reverting back to the old technique of tracking my clicks in a variable because I can't get it to work any other way.
Answers
-
You can do this with variables.
Create a variable (for example, MyVar) and put an action on each button that adds to the variable. Then include an action will run the action you want triggered after the variable conditions have been met. For example:
Button 1
- On mouseclick >modify MyVar >add to variable a
- On mouseclick >DO TRIGGER ACTION *if* MyVar contains A, MyVar contains B
Button 2
- On mouseclick >modify MyVar >add to variable b
- On mouseclick >DO TRIGGER ACTION if MyVar contains A, MyVar contains B
You can keep adding to the variable until every button you want users to click has been clicked. I hope this helps ☺️
0 -
susanmacnab Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 52 ☆ Superstar ☆
Thank you @beeps for your suggestion.
I am aware of the variable method and have been using it for years.
When Lectora 21 came out with improved button states and grouping, I assumed that there would be a built-in feature that could trigger an action once all buttons in a group have been clicked on. Unfortunately it doesn't seem to exist.
The variable method works perfectly, of course, but it's something that all new users have to learn on their own. If there was a conditional for "all buttons in group x have been clicked on" or even if each button had a "visited or selected" conditional it could cut out a few steps for us developers.
1 -
They should add some "negative Relationships" e.g. If Button 1 is "not normal".
2 -
CarlJFink Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 163 ♦ Idol ♦
You could say that in the Feature Requests area, of course.
0 -
wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 702 eLearning ROCKSTAR Admin Team
This is a little cheesy, but if you add an action to each button to set it to visited before you do the conditional check, then afterward set it selected it might work the way you want.
<each button>
<action> On Mouse Click -> Set State -> This Object -> Visited
<action> (do your conditional check here for visited states)
<action> On Mouse Click -> Set State -> This Object -> Selected
0 -
susanmacnab Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 52 ☆ Superstar ☆
Thanks @wheels I never thought of that workaround. I'll keep it in mind next time instead of keeping a variable.
1
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.2K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 345 CenarioVR®
- 205 CenarioVR Discussions
- 140 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products