Setting Variables based on a User's Answer
Aug 21, 2013
I would like to set up a course that records a specific variable value based on if a user gets a question correct or incorrect. The questions do not include feedback, so I cannot use the button off the feedback layer to acheive.
Right now, I am setting variables based on a user clicking each individual answer option. Later in the course, those variables are used to determine if users have to view pages that correspond to the questions.
Is there an easier way to do this? Essentially to record what questions a user got wrong?
9 Replies
Are you using freeform quizzes? It might be easier to just make your own quiz so that it's easier to assign variables to the choices. You could just set up variables for the responses and then jump to certain slides if those variables are at a certain value.
It sounds like that's actually what you're doing, but I included this example just because I've never done something like this and it's always fun to try something new. Maybe this helps you as well
Thanks Jesse! That's the direction I was heading in - variables by choice. I was just secretly hoping there was a way to just pull a "they got the question on slide 1.3 right or wrong"
That's basically what we're talking about, I think. Each questions has 1 variable, and each incorrect answer changes the variable of that question.
Hi,
Another way is to have empty correct and incorrect layers and on timeline-starts trigger, set the variable like following
Correct layer --> on timeline-starts --> adjust variable isQ1Correct = true
incorrect layer --> on timeline-starts --> adjust variable isQ1Correct = false
This approach is dynamic (no hardcoding) where you do not have to determine the incorrect options on the screen and set variable on each option's click trigger.
Also its easy to copy on other question slides. You have to just copy those two empty layers and paste them on other quiz slide and just change the variable...that's it...This will avoid writing click trigger on each option and too on every question slide.
Another advantage is, this approach will work on other type of question slides as well like drag n drop, sequencing etc.
--
MK
Thanks Jesse and MK for your help!
Let us know if you need anything else Meredith!
MK, are you still following this post? Is your advice still applicable to Storyline 2?
Hi Ryan,
If you don't receive a response from MK here, you may want to message him directly using the "contact me" button on his profile to see if there is any additional information to share.
Thanks Ashley, figured it out for myself after all. I created a blank feedback master that I could apply to the questions and then followed M K's advice.
This discussion is closed. You can start a new discussion or contact Articulate Support.