Help with simple interaction, best practices example

venturi01
Community Member Posts: 5
I am still getting used to how lectora conditionals and objects work. All i want to do is hide a prompt after i click 3 buttons. I have 3 variables that when all 3 are equal to 1. the prompt hides. So far i cant get it to work, and i think its because i am not running my actions correctly. I have attached the file, hopefully someone can help me. I just need a best practice example to follow so i can understand this.
Comments
-
The basic problem is that nothing was triggering your Hide Prompt action at the top of the title explorer.
In the attached version, I've made the following changes:- Put that action inside a group. While it might seem weird to have a "group" with just one action, it allows triggering the action with a "Run Action Group" action.
- Added an On Click > Run Action Group action to each of the buttons to run the new group.
One other note: As you get more advanced with Lectora, you may regret naming your variables VAR_Something. You can display the value of a variable on the screen by putting VAR(VariableName) in a text box or message, and having that look like VAR(VAR_QDC) might be confusing; there'd be similar confusion in JavaScript, in which you can pull in a Lectora variable value with a line like var x = VarVariableName, and seeing VarVAR_QDC would kinda make me nuts. Maybe that's just me, though.
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 329 CenarioVR®
- 196 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products