Copy link to clipboard
Copied
Hi,
I am using Captivate 8 and creating a quiz review slide for my learners, where they can see all of the quiz Qs, the correct answer, and their response. I have included their response by assigning cpQuizInfoAnswerChoice to a new, user-created variable after each slide (thanks, Lilybiri, if you see this!)
However, I seem to have no control over how the answer variable appears for some question types. My learners see "YOUR ANSWER: Q_1answerText_0" (or similar); is there a way that I can change the system-assigned answer, once it is a user variable, so that this is actually helpful to my learners?
Happy to provide any additional information.
Best,
Laura
No, you don't have control over the content of the variable cpQuizInfoAnswerChoice. I tried to explain in the article you are talking about. If you want to see really the text of each answer, for some types of question slides you'll have to 'translate' the content of that variable to the text corresponding with the number or character. In that case I would largely prefer to create custom question slides. With the radiobuttons widget, the associated variable will have to full text of the chosen
...Copy link to clipboard
Copied
No, you don't have control over the content of the variable cpQuizInfoAnswerChoice. I tried to explain in the article you are talking about. If you want to see really the text of each answer, for some types of question slides you'll have to 'translate' the content of that variable to the text corresponding with the number or character. In that case I would largely prefer to create custom question slides. With the radiobuttons widget, the associated variable will have to full text of the chosen item.
Copy link to clipboard
Copied
Thanks for this, and for the radiobutton suggestion. This will definitely work for standard MC questions.
I was curious about the "translate" option you mentioned -- intuitively, it should seem like there is some way to tell Captivate that if a variable X contains a given string, then substitute "user input answer" for that string...but I'm not sure if this is what you meant (and if so, how to implement this "translation")
Thanks for your continued help!
Copy link to clipboard
Copied
I meant that the quizzing system variable cpQuizInfoAnswerChoice (see: )http://blog.lilybiri.com/secrets-of-cpquizinfoanswerchoice-and ) not always gets as value the string that is the answer text. Often it will be just A or B... the number of the answer. If you want to see the 'string' itself, you'll have to create a conditional action to put the string instead of the number in the user variable for that question.
Copy link to clipboard
Copied
This is more along the lines of what I was thinking would be possible.
Do you have a suggestion for which option in the conditional actions would be best to use? Right now I'm messing around with something like:
If [variable] contains [literal = "Q_1answerText_0"
then execute JavaScript (and then using a global replace string script)
...but so far, no luck. If you have any suggestions, I'd be so appreciative...a bit out of my wheelhouse here.
Thanks!
Copy link to clipboard
Copied
It depends on which type of question, because cpQuizInfoAnswerChoice stores different values based on that type. You could store the answers in an array (using JS) and retrieve the correct string. It can be done with conditional (shared) actions as well, but could be cumbersome if you have long answers of course. I'm not a JS expert at all, use it only when advanced actions fail to give an acceptable solution.
Copy link to clipboard
Copied
Similarly, I'd like to about using JS if possible.
Do you have a suggestion for the form that the conditional action should take? The condition part seems straightforward enough (if variable contains literal " "), but the action part is unclear, based on the options in the dropdown menu.
Thanks for your continued support on this.