Help needed - warning for non-answering of question
March 4, 2014 12:00 AM
Hi,
I am new(ish) to Lectora and have not been able to find out how to do the following:
I have a multiple choice multiple response question on a page as well as a button to process the question and to show the correct response. I need to know how to set things up so that if someone clicks on that button before choosing any answers they will get a "Must answer question" message.
Discussion (4)
You can always add an action to your submit button which will display a message based on the condition that the question variable "Is Empty". The user then closes the message and answers the question and question processing occurs normally.
If the question is part of a test, the option to force students to answer a question is available on the test's Behavior tab. Just place a check next to "Student Must Answer Each Question." The default message is "You must answer all of the questions to continue.", but you can change that in Lectora Preferences under Publish Strings.
Thanks for the answers. It is NOT within a test so I tried the "If empty". It works fine, but since I had already put an action on the submit button to show the correct answers, when you click "submit" it now shows the warning PLUS the answers. How could I have the warning display without the following action "display the correct answers" automatically kicking in?
Put all the actions you only want to be done if the question is not empty into a group. Just create a group and move all the actions from the button to the group. Give the group a name like "evaluate".
Add an action to the button
On: Click
Action: Run action group
Target: evaluate
Condition: Only if question_000# "is not empty"
Else:
Action: Show message
Mesage: Please answer the question
If you don't want to use a group or if you only have one more action you can set a condition to the "Show Answers" action to show the answers only if the question is "not empty".
Tim
Discussions have been disabled for this post