Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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