Making data variables the answers to quiz questions.

Apr 15, 2015

Is it possible to make a data variable the answer to a quiz question? 

Basically, I am having users create answers to questions, using the variables function, which therefore allows me to save those answers uniquely for each user.

I then want to use those unique answers in a quiz to see if each user remembers what their answers were. 

Is this possible?

4 Replies
Chris Cole

Hi Joanna -

One way to do this would be as follows:

  • Use a True/False quiz page.
  • Add a text entry field to the quiz page for the learner to type their answer. SL will automatically create a trigger to set the text entry to a variable.
  • Add a couple of triggers to change the state of the True/False buttons as appropriate depending on if the learner's answer matched the previous answer (which you have stored in a variable), as follows:

Now when the learner clicks the Submit button, it will check the state of the True/False buttons to see if the learner answered correctly.

Seems like in SL1 we could move the question objects (the True/False buttons) off screen so the learner could not see them, but it seems in SL2 that you cannot do that. So you may need to obscure them behind an object so they won't be seen.

Hope this helps.

Chris

This discussion is closed. You can start a new discussion or contact Articulate Support.