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

Is there a list of values returned by System Variables?

Explorer ,
Oct 08, 2017 Oct 08, 2017

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.

329
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 ,
Oct 08, 2017 Oct 08, 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
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
Explorer ,
Oct 08, 2017 Oct 08, 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?

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 ,
Oct 08, 2017 Oct 08, 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

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 ,
Oct 09, 2017 Oct 09, 2017

I guess it might be because it's sort of a temporary storage for the information at hand. Once you move to the next question the variable is reset back to default. I'm not sure if it happens on question slide entry or on the submit of the next question but it is only the most recent answer. That's why you might want to store it in your own set of variables for later use.

Paul Wilson, CTDP
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 ,
Oct 09, 2017 Oct 09, 2017

For users who want to learn more about the functionality of this particular Quizzing system variable, you can have a look at the post that the OP was referring to:

Secrets of cpQuizInfoAnswerChoice and.... - Captivate blog

The lists with system variables I was referring to in a previous answers is only for the exposed system variables. Captivate has more system variables, where some can be accessed using JS. Have a look at this thread:

Unpublished Captivate Variables

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 ,
Oct 09, 2017 Oct 09, 2017
LATEST

No thanks, Lieve. I no longer read your blog since you alleged that I was misappropriating your content.

Paul Wilson, CTDP
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