Skip to main content
Inspiring
June 20, 2014
Answered

Total Number of Questions Variable

  • June 20, 2014
  • 1 reply
  • 687 views

I'm trying to use system variable CpQuizInfoTotalQuestionsPerProject in a Captivate 7 project, but the value is always 0, even though I have several questions.

I tried using the variable as it is, or assign it first to a user variable, and still always shows 0.


Probably I'm doing something wrong. Any help will be greatly appreciated.

    This topic has been closed for replies.
    Correct answer Lilybiri

    I was asked to include a counter in normal slides to show "Slide x of y", where y is the total number of normal slides. But in order to do that, I need to subtract the number of Quiz Slides from the number of Total Slides (quiz slides already have their own counter).

    So the Advanced Action is: v_TSlides = cpInfoSlideCount - cpQuizInfoTotalQuestionsPerProject

    But since the value of cpQuizInfoTotalQuestionsPerProject is always zero, the total number of normal slides is always wrong.


    Sorry, will check it when I can restart CP, busy installing the whole CC bunch (I am an Adobe freak).

    When do you trigger this advanced action? And what are the quiz settings? If you have Branch aware on, the quiz system variables are dynamic, they are populated depending on the questions taken by the user. Is that perhaps the case?

    1 reply

    Lilybiri
    Legend
    June 20, 2014

    There is a typo, because variables are case sensitive: cpQuizInfoTotalQuestionsPerProject. 

    Which version are you using? How did you 'use' that variable? Did you insert it into a text container using the X button in the Format accordion of the Properties panel (for CP7 or earlier) or in the Style tab of the Properties panel in CP8? It is a read-only variable, that is also used on the score slide. Can you check Advanced Interaction panel (F9), maybe there are no questions in your file?

    System variables in Captivate 6 - Captivate blog

    Lilybiri

    met547Author
    Inspiring
    June 20, 2014

    Thanks for your reply. Actually, the first thing I did was check your AWESOME blog. Also found your CP6 System Variables list PDF, and it's how I found this variable. I'm using Captivate 7.0.0.118.

    I'm not typing the variable, I'm selecting it from the list of System Variables and using it in an Advanced Action to implement a slide counter for normal slides.

    Since the counter didn't work correctly, I tested the variable by using a Text Caption (selecting the variable using the X button from Format) to see the value, and it's always zero. The Advanced Interaction panel shows 3 questions, and the Quiz Results slide reports 3 total questions.

    Just to check, I started a blank project from scratch, and added 3 questions, and I'm getting the same results as above.

    Do you think this might be related to the Captivate 7.0.1 update?  Maybe I need to install this update.

    Thank you.

    Lilybiri
    Legend
    June 20, 2014

    ??? Why should you use that system variable for a slide counter? Can you show that Advanced action? Normally that system variable is a fixed value. I never did see something strange with the Quizzing system variables in 7, not even in your version. But you should update. 7.0.1 has not only bugs fixed but some nice new features, it should have been numbered 7.1 or even 7.5

    New features in Captivate 7.01 - Captivate blog

    Thanks for appreciating my blog...

    Lilybiri