Simple Variable

sgroom
Community Member Posts: 13 ♪ Opening Act ♪
Hi there, I am new to using variables but need one to achieve a desired effect.
Basically, I have three tabs of information on a page that I would like learners to click. Once they clicked and read all three, I want a text box to appear with further information - not until all three tabs (buttons) have been clicked though.
I've looked on line and seen variables for something similar (activating a next button etc) but not explained in a way that I can do it step by step.
Could anyone help please?
Thanks for reading.
Basically, I have three tabs of information on a page that I would like learners to click. Once they clicked and read all three, I want a text box to appear with further information - not until all three tabs (buttons) have been clicked though.
I've looked on line and seen variables for something similar (activating a next button etc) but not explained in a way that I can do it step by step.
Could anyone help please?
Thanks for reading.
Comments
-
Use the variable manager to create a variable:
Name: buttons_clicked (You can choose another name if you like)
Initial value: 0
Add an action to each of your buttons:
1. First Button
On: Click
Action: Modify variable
Target: buttons_clicked
Type: Add to variable
Value: a
Now the variable will contain "a" if the first button has been clicked.
2. Second Button
On: Click
Action: Modify variable
Target: buttons_clicked
Type: Add to variable
Value: b
Now the variable will contain "b" if the second button has been clicked.
3. Third Button
On: Click
Action: Modify variable
Target: buttons_clicked
Type: Add to variable
Value: c
Now the variable will contain "c" if the third button has been clicked.
Add another action to each button.
On: Click
Action: Show
Target: Additional_Texfield
Condition:
Only if ("All conditions must but true")
buttons_clicked Contains a
buttons_clicked Contains b
buttons_clicked Contains c
Add an action on page level:
On: Show
Action: Modify variable
Target: buttons_clicked
Type: Set as empty
Only to reset the variable
Tim -
Steve,
Another consideration especially if your using SCORM 1.2 and counting precious character space (SCORM 1.2 has a 4k limit is to add a condition to each of the actions on the buttons.
For example on the first button:
1. First Button
On: Click
Action: Modify variable
Target: buttons_clicked
Type: Add to variable
Value: a
Condition:Variable=
Relationship= Does Not Contain
Value=a ***Please note the a changes to b for the next button, ect***
If you don't do the condition, a learner can basically click all three buttons repeatedly and the LMS would store each of those button clicks and eventually run out of space.
Hopefully this helps and makes sense
-kelly
@timk 61646 wrote:Use the variable manager to create a variable:
Name: buttons_clicked (You can choose another name if you like)
Initial value: 0
Add an action to each of your buttons:
1. First Button
On: Click
Action: Modify variable
Target: buttons_clicked
Type: Add to variable
Value: a
Now the variable will contain "a" if the first button has been clicked.
2. Second Button
On: Click
Action: Modify variable
Target: buttons_clicked
Type: Add to variable
Value: b
Now the variable will contain "b" if the second button has been clicked.
3. Third Button
On: Click
Action: Modify variable
Target: buttons_clicked
Type: Add to variable
Value: c
Now the variable will contain "c" if the third button has been clicked.
Add another action to each button.
On: Click
Action: Show
Target: Additional_Texfield
Condition:
Only if ("All conditions must but true")
buttons_clicked Contains a
buttons_clicked Contains b
buttons_clicked Contains c
Add an action on page level:
On: Show
Action: Modify variable
Target: buttons_clicked
Type: Set as empty
Only to reset the variable
Tim
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®
- 911 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 10 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