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®?
Disable next button until all questions on page answered correctly

I have four questions on one page each with a submit button giving feedback. I have disabled the next button and added onshowsetstate to this with each question (from the reserved list) added and the relationship set to “is correct” but this doesn’t work. What have I done wrong?
Regards
Pip
Comments
-
Hi Pip - This is something I've done quite often with my courses. It may be easier to create a variable that adds to a count each time a question is answered correctly. For example on each Submit button, you could add (in this order; X=the number of questions on the page):
- onClick Modify Variable "questions_correct" -> Add to variable "1" IF Question_0001 is correct.
- onClick Change State -> Next -> enable IF "questions_correct" = "X"
- onClick Change State -> Submit IF question_ooo1 is correct
- onShow Set State -> Next -> disabled IF "questions _correct" < "X" ELSE Set State -> Next -> enabled
- onShow Set State -> Submit button 1 -> disable IF questions_correct = "X" (duplicate for each submit button)
-
Another method (Seem's Tim beat me to the punch) that might be easier and quicker to set up (just duplicate the group and change the variable to modify for each question).
If you still want to know why what you originally had doesn't work then post it or a similar sample and I/we will look it over and provide feedback.
Darrel -
-
Hi,
if you attach an On:Show action to the next button, this action will be run when the button is shown, i.e. for an initially visible button, when the page is loaded. This action won't change the state of the button while the user is on the page answering the questions but it should change the state if a user returns to the page unless you reset the questions.
Copy the action to each Submit button "On: Click" and you should be fine.
Tim -
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
- 36 Lectora Accessibility User Group (LAUG)
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 346 CenarioVR®
- 205 CenarioVR Discussions
- 141 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