Skip to main content
Inspiring
May 30, 2017
Answered

Storing quiz slides question and answer texts in variables?

  • May 30, 2017
  • 1 reply
  • 336 views

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.

    This topic has been closed for replies.
    Correct answer Lilybiri

    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.

    1 reply

    Lilybiri
    Brainiac
    May 30, 2017

    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:

    Using Quizzing System Variables - Captivate blog

    Secrets of cpQuizInfoAnswerChoice and.... - Captivate blog

    Inspiring
    May 30, 2017

    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.

    Lilybiri
    LilybiriCorrect answer
    Brainiac
    May 30, 2017

    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.