Quote from
m.burdess on September 11, 2020, 3:18 pm
@luishp Yes, you are correct. I looked at using the "If" and having a named variable, but could not workout a code that would work.
NeoQuiz will allow you to have a text field, but could not find a method to use what was entered. If all show false you get "That's right!",even if you place no answer within the question. If you have one true, then you get correct if that one is checked, or false for the other three.
So I need to look for a work around.
"questions": [
{ // Question 1 - Multiple Choice, Single True Answer
"q": "What is the maximum speed entering a terminal platform?" ,
"a": [
{"option": "Speed <input type=text id=speed> miles", "correct": false},
{"option": "20 mph", "correct": false},
{"option": "15 mph", "correct": false},
{"option": "5 mph", "correct": false}, // no comma here
],
"correct": "<p><span>That's right!</span></p>",
"incorrect": "You need to work on that" // no comma here
},
@luishp Yes, you are correct. I looked at using the "If" and having a named variable, but could not workout a code that would work.
NeoQuiz will allow you to have a text field, but could not find a method to use what was entered. If all show false you get "That's right!",even if you place no answer within the question. If you have one true, then you get correct if that one is checked, or false for the other three.
So I need to look for a work around.
"questions": [
{ // Question 1 - Multiple Choice, Single True Answer
"q": "What is the maximum speed entering a terminal platform?" ,
"a": [
{"option": "Speed <input type=text id=speed> miles", "correct": false},
{"option": "20 mph", "correct": false},
{"option": "15 mph", "correct": false},
{"option": "5 mph", "correct": false}, // no comma here
],
"correct": "<p><span>That's right!</span></p>",
"incorrect": "You need to work on that" // no comma here
},