Skip to main content
Participating Frequently
January 13, 2017
Question

Unpublished Captivate Variables

  • January 13, 2017
  • 2 replies
  • 345 views

It seems to me that there are more system variables than the ones at: List of variables in Adobe Captivate.

Does anyone know of a list of "unpublish Captivate variables"?

I'm interested in variables related to quizzes for example what is the stored answer to question 1, 2, 3, etc. I know there is a variable cpQuizInfoAnswerChoice but that only returns the last answer chosen not what what was chosen for a specific question.

This topic has been closed for replies.

2 replies

TLCMediaDesign
Inspiring
January 14, 2017

Everything about the questions is available and more. The question data is stored in an array of objects which appear to be in the order the questions are encountered. To get the answer choice for the first question you would use this JavaScript:

cp.movie.questionObjs[0].m_questionScore.m_chosenAnswersAsString

This would return "D" if the learner chose the fourth answer in a multiple choice.

If you want the text of the answer:

cp.movie.questionObjs[0].m_questionScore.m_descriptionTexts.answerTexts.learner_response

Lilybiri
Legend
January 13, 2017

I really don't know if those variables exist, hoping someone else will pop in. I published a descriptive table with all 'exposed' system variables, but that is not what you want :System variables in Captivate 8/9 - Captivate blog