Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Storing quiz slides question and answer texts in variables?

Community Beginner ,
May 30, 2017 May 30, 2017

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.

271
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 30, 2017 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.

Translate
Community Expert ,
May 30, 2017 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 30, 2017 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2017 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 30, 2017 May 30, 2017

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2017 May 30, 2017
LATEST

You're welcome. Any question about Captivate is welcome, but I'm not a programmer. Thanks for reading my blog.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources