I am in need of testing the knowledge of a text entry form in a Storyline quiz. For several items, more than one separate text entry field is needed for a single question item. I don't see that you can add multiple text entry fields that are evaluated by the quiz form. Does anyone know of a work-around?
Yes. Set it up as a Pick One question with two buttons: CORRECT and INCORRECT
Place the correct and incorrect buttons off the slide so that they are not visible.
Use the following triggers:
- Change the state of the CORRECT button to selected when the user clicks the SUBMIT button under these conditions:
blank1= AND blank 2= AND blank 3= etc.
- Change the state of the INCORRECT button to selected when the user clicks the SUBMIT button under these conditions:
blank1 not equal to OR blank 2 not equal to AND blank 3 not equal to etc.
Submit Interaction when users clicks SUBMIT button
Be sure that you put these triggers in the correct order or you will get an error. Also, be sure to use "or" for the incorrect answers or it won't work.
Each button is as you've described and in this order:
change state of correct btn to 'selected' if txt entry 1 equal 100,000 and txt entry 2 equal 30,000 and txt entry 3 equal 70,000 and txt entry 4 equal 1,346.15
change state of try btn to 'selected' if txt entry 1 not equal 100,000 and txt entry 2 not equal 30,000 and txt entry 3 not equal 70,000 and txt entry 4 not equal 1,346.15 and tryagain equal false (set on the layer)
change state of incorrect btn to 'selected' if txt entry 1 not equal 100,000 and txt entry 2 not equal 30,000 and txt entry 3 not equal 70,000 and txt entry 4 not equal 1,346.15 and tryagain equal true (set on the layer)
Submit interaction when user clicks submit button
I initially had each setup with 'and' on each option, then opted to change to 'or' but still I'm getting errors. In either case, I'm still being shown the wrong layer. At one point, I had the internal error of the question not being completed, when when it was. That's since corrected, but the layer dispersion has not.
I've added new triggers on the layers, correlating to the surrounding boxes of each text entry field, so they indicate if the answer is correct or not. This seems to be working perfectly. However, when I answer the question correctly, it's not an issue, but if one or more is incorrect, and then updated to the right answer on the second attempt, the incorrect layer is still shown, even when all the surrounding text boxes are showing they're all correct.
On each layer I have the following triggers:
Correct: change state of rectangle 1 to 'right' change state of rectangle 2 to 'right' change state of rectangle 3 to 'right' change state of rectangle 4 to 'right' set q08 to true
Try again: change state of rectangle 1 to 'right' if txt entry 1 equal 100,000 change state of rectangle 1 to 'wrong' if txt entry 1 is not equal 100,000 change state of rectangle 2 to 'right' if txt entry 2 equal 30,000 change state of rectangle 2 to 'wrong' if txt entry 2 is not equal 30,000 change state of rectangle 3 to 'right' if txt entry 3 equal 70,000 change state of rectangle 3 to 'wrong' if txt entry 3 is not equal 70,000 change state of rectangle 4 to 'right' if txt entry 4 equal 1,346.15 change state of rectangle 4 to 'wrong' if txt entry 4 is not equal 1,346.15 set tryagain to true
Inccorect: change state of rectangle 1 to 'right' if txt entry 1 equal 100,000 change state of rectangle 1 to 'wrong' if txt entry 1 is not equal 100,000 change state of rectangle 2 to 'right' if txt entry 2 equal 30,000 change state of rectangle 2 to 'wrong' if txt entry 2 is not equal 30,000 change state of rectangle 3 to 'right' if txt entry 3 equal 70,000 change state of rectangle 3 to 'wrong' if txt entry 3 is not equal 70,000 change state of rectangle 4 to 'right' if txt entry 4 equal 1,346.15 change state of rectangle 4 to 'wrong' if txt entry 4 is not equal 1,346.15
I initially had those triggers with all 'right' triggers together, and 'wrong' triggers together. Either way, hasn't made much difference. I also had the 'set variables' at the top of the list initially, but this hasn't made much of a difference either. At this stage, it mostly appears to struggle if any answers are incorrect, and then re-attempted. I've even gone so far as to think that the user may need to completely re-type each answer, and have done this during testing, but still to no avail.
From what I can see you have conflicting logic or missing logic.
change state of try btn to 'selected' if txt entry 1 not equal 100,000 and txt entry 2 not equal 30,000 and txt entry 3 not equal 70,000 and txt entry 4 not equal 1,346.15 and tryagain equal false (set on the layer) Should tryagain not be true if the conditions are met? try btn should only be selected if tryagain == true.
change state of incorrect btn to 'selected' if txt entry 1 not equal 100,000 and txt entry 2 not equal 30,000 and txt entry 3 not equal 70,000 and txt entry 4 not equal 1,346.15 and tryagain equal true (set on the layer) Should tryagain not be false if the conditions are met? incorrect btn should only be selected if tryagain == false. Meaning you are out of attempts.
--------------------
Correct: change state of rectangle 1 to 'right' if txt entry 1 equal 100,000 change state of rectangle 1 to 'wrong' if txt entry 1 is not equal 100,000 change state of rectangle 2 to 'right' if txt entry 1 equal 30,000 change state of rectangle 2 to 'wrong' if txt entry 1 is not equal 30,000 change state of rectangle 3 to 'right' if txt entry 1 equal 70,000 change state of rectangle 3 to 'wrong' if txt entry 1 is not equal 70,000 change state of rectangle 4 to 'right' if txt entry 1 equal 1,346.15 change state of rectangle 4 to 'wrong' if txt entry 1 is not equal 1,346.15 set q08 to true - does q08 have a default 'false' value?
Incorrect: change state of rectangle 1 to 'right' if txt entry 1 equal 100,000 change state of rectangle 1 to 'wrong' if txt entry 1 is not equal 100,000 change state of rectangle 2 to 'right' if txt entry 1 equal 30,000 change state of rectangle 2 to 'wrong' if txt entry 1 is not equal 30,000 change state of rectangle 3 to 'right' if txt entry 1 equal 70,000 change state of rectangle 3 to 'wrong' if txt entry 1 is not equal 70,000 change state of rectangle 4 to 'right' if txt entry 1 equal 1,346.15 change state of rectangle 4 to 'wrong' if txt entry 1 is not equal 1,346.15
This layer might not always show correctly due to tryagain always being set to 'true'.
"At this stage, it mostly appears to struggle if any answers are incorrect, and then re-attempted."
I think this might be happening due to the incorrect btn still being "stuck" in the selected state. Even if you re-enter the correct answers, incorrect (or try again) will remain selected, since you do not, based on the information given, have the correct triggers defined to change them back to the 'normal' state. Thus on any of the subsequent attempts, more than once button will always be 'selected', which is incorrect.
From what I can see you have conflicting logic or missing logic.
change state of try btn to 'selected' if txt entry 1 not equal 100,000 and txt entry 2 not equal 30,000 and txt entry 3 not equal 70,000 and txt entry 4 not equal 1,346.15 and tryagain equal false (set on the layer) Should tryagain not be true if the conditions are met? try btn should only be selected if tryagain == true.
change state of incorrect btn to 'selected' if txt entry 1 not equal 100,000 and txt entry 2 not equal 30,000 and txt entry 3 not equal 70,000 and txt entry 4 not equal 1,346.15 and tryagain equal true (set on the layer) Should tryagain not be false if the conditions are met? incorrect btn should only be selected if tryagain == false. Meaning you are out of attempts.
Hi Joey I think I've got it working by just adding the amended state for the try again button. This seems to work ok. The tryagain variable is set to false by default, as is q08, therefore, it becomes true if they've made an attempt, but got it wron, and for q08, it's only true if the answer is correct, and only added to the correct layer.
I can certainly add a file to see the things I've done. Please see attached.
change state of try btn to 'selected' if txt entry 1 not equal 100,000 and txt entry 2 not equal 30,000 and txt entry 3 not equal 70,000 and txt entry 4 not equal 1,346.15
HI Joey,
I think this trigger conditions for the btn TRY should be
change state of try btn to 'selected' if txt entry 1 not equal 100,000 or txt entry 2 not equal 30,000 or txt entry 3 not equal 70,000 or txt entry 4 not equal 1,346.15
plus - I would also add a variable for every answer, and then use the variables in the trigger (not the numbers itself.) That way you can change the answer quickly and they should work for all 3 btns.
8 Replies
Yes. Set it up as a Pick One question with two buttons: CORRECT and INCORRECT
Place the correct and incorrect buttons off the slide so that they are not visible.
Use the following triggers:
- Change the state of the CORRECT button to selected when the user clicks the SUBMIT button under these conditions:
blank1=
AND blank 2=
AND blank 3=
etc.
- Change the state of the INCORRECT button to selected when the user clicks the SUBMIT button under these conditions:
blank1 not equal to
OR blank 2 not equal to
AND blank 3 not equal to
etc.
Submit Interaction when users clicks SUBMIT button
Be sure that you put these triggers in the correct order or you will get an error. Also, be sure to use "or" for the incorrect answers or it won't work.
Hello,
I have a similar query. While I've had it working, it's now not behaving since adding in some additional state triggers.
In essence, my setup:
4 text entry boxes
3 buttons (for 2 attempts)
Pick-one - correct button = correct answer
Each button is as you've described and in this order:
change state of correct btn to 'selected' if
txt entry 1 equal 100,000
and txt entry 2 equal 30,000
and txt entry 3 equal 70,000
and txt entry 4 equal 1,346.15
change state of try btn to 'selected' if
txt entry 1 not equal 100,000
and txt entry 2 not equal 30,000
and txt entry 3 not equal 70,000
and txt entry 4 not equal 1,346.15
and tryagain equal false (set on the layer)
change state of incorrect btn to 'selected' if
txt entry 1 not equal 100,000
and txt entry 2 not equal 30,000
and txt entry 3 not equal 70,000
and txt entry 4 not equal 1,346.15
and tryagain equal true (set on the layer)
Submit interaction when user clicks submit button
I initially had each setup with 'and' on each option, then opted to change to 'or' but still I'm getting errors. In either case, I'm still being shown the wrong layer. At one point, I had the internal error of the question not being completed, when when it was. That's since corrected, but the layer dispersion has not.
I've added new triggers on the layers, correlating to the surrounding boxes of each text entry field, so they indicate if the answer is correct or not. This seems to be working perfectly. However, when I answer the question correctly, it's not an issue, but if one or more is incorrect, and then updated to the right answer on the second attempt, the incorrect layer is still shown, even when all the surrounding text boxes are showing they're all correct.
On each layer I have the following triggers:
Correct:
change state of rectangle 1 to 'right'
change state of rectangle 2 to 'right'
change state of rectangle 3 to 'right'
change state of rectangle 4 to 'right'
set q08 to true
Try again:
change state of rectangle 1 to 'right' if txt entry 1 equal 100,000
change state of rectangle 1 to 'wrong' if txt entry 1 is not equal 100,000
change state of rectangle 2 to 'right' if txt entry 2 equal 30,000
change state of rectangle 2 to 'wrong' if txt entry 2 is not equal 30,000
change state of rectangle 3 to 'right' if txt entry 3 equal 70,000
change state of rectangle 3 to 'wrong' if txt entry 3 is not equal 70,000
change state of rectangle 4 to 'right' if txt entry 4 equal 1,346.15
change state of rectangle 4 to 'wrong' if txt entry 4 is not equal 1,346.15
set tryagain to true
Inccorect:
change state of rectangle 1 to 'right' if txt entry 1 equal 100,000
change state of rectangle 1 to 'wrong' if txt entry 1 is not equal 100,000
change state of rectangle 2 to 'right' if txt entry 2 equal 30,000
change state of rectangle 2 to 'wrong' if txt entry 2 is not equal 30,000
change state of rectangle 3 to 'right' if txt entry 3 equal 70,000
change state of rectangle 3 to 'wrong' if txt entry 3 is not equal 70,000
change state of rectangle 4 to 'right' if txt entry 4 equal 1,346.15
change state of rectangle 4 to 'wrong' if txt entry 4 is not equal 1,346.15
I initially had those triggers with all 'right' triggers together, and 'wrong' triggers together. Either way, hasn't made much difference. I also had the 'set variables' at the top of the list initially, but this hasn't made much of a difference either. At this stage, it mostly appears to struggle if any answers are incorrect, and then re-attempted. I've even gone so far as to think that the user may need to completely re-type each answer, and have done this during testing, but still to no avail.
Any thoughts?
Hi Blue,
Can you share your file? It'd be easier to get to the bottom of this if we could play with your file directly.
Thanks!
Hi Blue.
From what I can see you have conflicting logic or missing logic.
change state of try btn to 'selected' if
txt entry 1 not equal 100,000
and txt entry 2 not equal 30,000
and txt entry 3 not equal 70,000
and txt entry 4 not equal 1,346.15
and tryagain equal false (set on the layer) Should tryagain not be true if the conditions are met? try btn should only be selected if tryagain == true.
change state of incorrect btn to 'selected' if
txt entry 1 not equal 100,000
and txt entry 2 not equal 30,000
and txt entry 3 not equal 70,000
and txt entry 4 not equal 1,346.15
and tryagain equal true (set on the layer) Should tryagain not be false if the conditions are met? incorrect btn should only be selected if tryagain == false. Meaning you are out of attempts.
--------------------
Correct:
change state of rectangle 1 to 'right' if txt entry 1 equal 100,000
change state of rectangle 1 to 'wrong' if txt entry 1 is not equal 100,000
change state of rectangle 2 to 'right' if txt entry 1 equal 30,000
change state of rectangle 2 to 'wrong' if txt entry 1 is not equal 30,000
change state of rectangle 3 to 'right' if txt entry 1 equal 70,000
change state of rectangle 3 to 'wrong' if txt entry 1 is not equal 70,000
change state of rectangle 4 to 'right' if txt entry 1 equal 1,346.15
change state of rectangle 4 to 'wrong' if txt entry 1 is not equal 1,346.15
set q08 to true - does q08 have a default 'false' value?
Incorrect:
change state of rectangle 1 to 'right' if txt entry 1 equal 100,000
change state of rectangle 1 to 'wrong' if txt entry 1 is not equal 100,000
change state of rectangle 2 to 'right' if txt entry 1 equal 30,000
change state of rectangle 2 to 'wrong' if txt entry 1 is not equal 30,000
change state of rectangle 3 to 'right' if txt entry 1 equal 70,000
change state of rectangle 3 to 'wrong' if txt entry 1 is not equal 70,000
change state of rectangle 4 to 'right' if txt entry 1 equal 1,346.15
change state of rectangle 4 to 'wrong' if txt entry 1 is not equal 1,346.15
This layer might not always show correctly due to tryagain always being set to 'true'.
"At this stage, it mostly appears to struggle if any answers are incorrect, and then re-attempted."
I think this might be happening due to the incorrect btn still being "stuck" in the selected state. Even if you re-enter the correct answers, incorrect (or try again) will remain selected, since you do not, based on the information given, have the correct triggers defined to change them back to the 'normal' state. Thus on any of the subsequent attempts, more than once button will always be 'selected', which is incorrect.
Hi Joey
I think I've got it working by just adding the amended state for the try again button. This seems to work ok. The tryagain variable is set to false by default, as is q08, therefore, it becomes true if they've made an attempt, but got it wron, and for q08, it's only true if the answer is correct, and only added to the correct layer.
I can certainly add a file to see the things I've done. Please see attached.
Thanks so much! This worked perfectly!!! I appreciate your detailed explanations!
I am trying to do something like this using storyline 2. Seems really complicated. Perhaps once I try it it will be easier.
HI Joey,
I think this trigger conditions for the btn TRY should be
change state of try btn to 'selected' if
txt entry 1 not equal 100,000
or txt entry 2 not equal 30,000
or txt entry 3 not equal 70,000
or txt entry 4 not equal 1,346.15
plus - I would also add a variable for every answer, and then use the variables in the trigger (not the numbers itself.) That way you can change the answer quickly and they should work for all 3 btns.
This discussion is closed. You can start a new discussion or contact Articulate Support.