Skip to main content
rgurule
Inspiring
October 9, 2017
Question

Is there a list of values returned by System Variables?

  • October 9, 2017
  • 1 reply
  • 381 views

The problem I had was using the QuizInfoAnswer variable to do some advanced actions after a quiz. (I read your blog Lily, thank you).

It would have been an easy answer if I had a list of value returns from system variables.

I found this page https://helpx.adobe.com/captivate/using/captivate-variables-list.html

This is a little helpful...it told me that QuizInfoAnswer returns a quiz answer with default value of 0.

But what does zero refer to? Is 0 a correct answer? Is one an incorrect answer? Does it return, 0, 1, 2, 3 according to the multiple choice response?

Thanks in advance.

This topic has been closed for replies.

1 reply

Paul Wilson CTDP
Community Expert
Community Expert
October 9, 2017

Are you referring to cpQuizInfoAnswerChoice? If so the default value is 0 but once your user submits an answer, cpQuizInfoAnswerChoice will contain the value that represents the answer number or letter (whichever numbering format you've selected). If you move on to a new question the variable will get rewritten so if you need to you will have to store the values in your own set of user variables.

Paul Wilson, CTDP
rgurule
rguruleAuthor
Inspiring
October 9, 2017

Thanks for this Paul. I dig your videos.

I found a workaround for the time being using a custom quiz setup that I got from you on YouTube.

I was trying to return cpQuizInfoAnswerChoice to a text caption, and it wouldn't print anything. Any idea why?

Lilybiri
Legend
October 9, 2017

I suspect you missed some blog posts about system variables and Quizzing variables, where you can download full descriptive tables as well:

Using Quizzing System Variables - Captivate blog

System variables in Captivate 8/9 and 2017 - Captivate blog

Be careful when using '0' in conditional actions. The way Captivate is 'calculating' values for variables often will lead to a workaround like the one described in this very old post:

Where is Null? - Captivate blog