Copy link to clipboard
Copied
Hi,
Does anyone have experience with storing the *actual text* of quiz slides questions and answers in variables? As there do not appear to be systems variables for that, I cannot see how to capture those question and answer text strings - so any help would be much appreciated!
Background: If questions or answers are improved between different releases of an e-learning module (CP project) and if answers are stored on an Internal Server (rather than LMS) that does not have version control for different releases of e-learning modules, it would be important to capture the exact question and answer text with each learner's submitted answers.
Did you look at the blog post? Indeed, it will capture an indicator, it is up to you to translate that indicator in the full answer. For apparent reasons the number of characters that are transmitted to a LMS are limited, which explains this behavior. I suppose it would be perfectly possible to transmit more using JS (would store everything in an array) but cannot really help you with that programming part.
Copy link to clipboard
Copied
You need to transfer the value of the quizzing system variable cpQuizInfoAnswerChoice to a user variable after each question. That system variable is reused on any quiz slide.
As for the question text, you can do the same, but that can be done during editing, not on runtime.
More info:
Copy link to clipboard
Copied
Thank you for the extremely fast reply! I am aware of cpQuizInfoAnswerChoice, but I thought that the variable only captures the selected answer (e.g. the number of the selected answer(s) in a MCQ), but not the actual text of the answer. Have I missed something? Also, both the question string and the selected answer string would need to be captured at run time together with the value of cpQuizInfoAnswerChoice.
Copy link to clipboard
Copied
Did you look at the blog post? Indeed, it will capture an indicator, it is up to you to translate that indicator in the full answer. For apparent reasons the number of characters that are transmitted to a LMS are limited, which explains this behavior. I suppose it would be perfectly possible to transmit more using JS (would store everything in an array) but cannot really help you with that programming part.
Copy link to clipboard
Copied
Thank you, I had read both of your blog posts before opening this new discussion here. After further thought, I have concluded that the capturing of question and answer text is really a server-side job which draws on the data of the relevant e-learning module release, stored in a versioning system. So, your answer has confirmed that a) capturing the text strings at run time would at the very least be complex and b) has led me to give more thought to a server-based solution . Thank you!
Copy link to clipboard
Copied
You're welcome. Any question about Captivate is welcome, but I'm not a programmer. Thanks for reading my blog.