Multiple choice with two numerical entry fields

Hi All, I have a real head scratcher here. I want to set up a quiz question that will analyze two numerical entry fields and give a correct response when they are both correct. I set it up in this way:

  • Created graded multiple choice question with possible answers "Answer True" and "Answer False"
  • Added numerical input fields NE_Min and NE_Max
  • Added numerical variables VarMin with default value of 0.2 and VarMax with default value of 0.8
  • Added button Submit

I set up triggers like this:

  • Change state of Answer True to Selected when NE_Min loses focus, if NE_Min = VarMin and NE_Max = VarMax
  • Change state of Answer True to Selected when NE_Max loses focus, if NE_Min = VarMin and NE_Max = VarMax
  • Change state of Answer False to Selected when NE_Min loses focus, if NE_Min ≠ VarMin 
    Change state of Answer Falseto Selected when NE_Max loses focus, if  NE_Max ≠ VarMax
  • When Submit is clicked;
  • Change state of Answer True to Selected when NE_Max loses focus, if NE_Min = VarMin and NE_Max = VarMax (maybe this is overkill since I already have this in other places)
  • Submit Multiple Choice

The state Answer True is correctly changed when the conditions above are met. However, when I hit the Submit button, I get an Incorrect result. 

...any ideas?

 

3 Replies
Walt Hamilton

I would throw away all the "when XX loses focus", as the chance of the user doing something funky is too high. Stick with "Change state of AnswerTrue to Selected When USER CLICKS SUBMIT (whether built in, or custom) if NE_Min = VarMin and NE_Max = VarMax", followed by "Change state of AnswerFalse to Selected When USER CLICKS SUBMIT (whether built in, or custom) if NE_Min = VarMin and NE_Max = VarMax", followed by "Submit interaction ...", all on the submit button.

William Ryan

Thanks for your response. One detail that I neglected in the beginning also, was that I didn't select the correct answer in Form View! 

That said, you advised to "Change state of AnswerFalse to Selected When USER CLICKS SUBMIT (whether built in, or custom) if NE_Min = VarMin and NE_Max = VarMax"

This means that both the AnswerTrue and AnswerFalse will be triggered by the same condition... Did you mean not equal instead of equal?