Skip to main content
gkeogh
Inspiring
September 1, 2016
Answered

How can I Identify the number of questions in qcproject at the start of the project?

  • September 1, 2016
  • 3 replies
  • 404 views

I need to read the total questions in a project and use that value to control a custom nav bar, however the value for "cpQuizInfoTotalQuestionsPerProject" is only set once the first quiz slide is entered. I need to know it at the start of a project. How can this be done?

Thanks

Gary

    This topic has been closed for replies.
    Correct answer RodWard

    Try extending the Quiz Scope to the first slide by placing a scored button on that slide that reports to the quiz.

    3 replies

    gkeogh
    gkeoghAuthor
    Inspiring
    September 2, 2016

    Hi Rod, the problem i have run into with your initial solution is that when the user resumes on one of the standard slides the "cpQuizInfoTotalQuestionsPerProject" value is not set as I only put the scored button on slide 1. If I put a scored button on each slides it defeats the purpose of creating an expression to output the number of standard slides less the quiz slides, so we're back to square one of hardcoding the number of both instead of dynamically generating them.  Any suggestions?

    Thanks

    Gary

    Lilybiri
    Legend
    September 2, 2016

    If you explained why you need to have the value of that system variable from the start?

    gkeogh
    gkeoghAuthor
    Inspiring
    September 2, 2016

    True I see now i should have explained in a bit more detail at the start.. my mistake! i thought maybe there was something simple i was missing with the variable cpQuizInfoTotalQuestionsPerProject.

    gkeogh
    gkeoghAuthor
    Inspiring
    September 1, 2016

    Brilliant! worked perfect.. thanks Rod!

    RodWard
    Community Expert
    RodWardCommunity ExpertCorrect answer
    Community Expert
    September 1, 2016

    Try extending the Quiz Scope to the first slide by placing a scored button on that slide that reports to the quiz.