Skip to main content
Known Participant
August 25, 2022
Question

Add Popup text upon Quiz Question Submit

  • August 25, 2022
  • 2 replies
  • 804 views

Gentlefolk,

I am developing a quiz for which the requirement is that if a question is failed, then the correct answer is displayed along with an explanation of why the answer is correct and the other options incorrect.

 

The amount of text means that modifying the existing FAILURE messages won't be practical - mainly because the user will be given two chances to answer the quiz correctly. The first response must be then the "Incorrect, try again" message. 

 

The logic flow then would be:

Upon submit:

- if correct, proceed to next question

- if incorrect, display "try again"

- if second attempt incorrect, display explanatory information.

> Upon close of explanatory explantion block, goto next question

 

Or something along those lines.

 

I believe there is an Advanced Action that I could employ, but I don't see a "cpQuizInfo..." variable named to cover this situation. Do I exploit "cpQuizInfoPassFail" or some other variable?

 

Looking for ideas!!!

 

Thank you!

 

Don

 

 

 

    This topic has been closed for replies.

    2 replies

    Lilybiri
    Brainiac
    August 25, 2022

    You may use the quizzing system variable cpQuizInfoAnswerChoice. Here is a blog, which has been using that variable in a different context:

    http://blog.lilybiri.com/using-cpquizinfoanswerchoice-for-survey-conversion-from-swf-to-html

    If you want to learn more about the (read-only) quizzing system variables, have a look at:

    http://blog.lilybiri.com/using-quizzing-system-variables

    cpQuizInfoPassFail is only useful on the complete quiz level, is not related at all with individual question slides as you need. Same with cpQuizInfoAttempts.

     

    You could use two Failure messages, the first will be for the first attempt, the second for the Last attempt. Or you can use the Last Attempt action to show a text message which is previously hidden and where you use cpQuizInfoAnswerChoice.

    Known Participant
    August 25, 2022

    Oh, thank you!

     

    I have been playing with 

     

    cpQuizInfoMaxAttemptsOnCurrentQuestion

     

    and using that to toggle a text box and a "continue" button. This works fine for the first question, but fails on the second.... so the question 1 value seems to carry over to the second question and displays elements that should be hidden.

    Looking at your blog now, thank you again!

    Lilybiri
    Brainiac
    August 25, 2022

    That system variable is fixed and reused on each quiz slide. I don't understand why you want to use that variable at all.

    Known Participant
    August 25, 2022

    Alternately, if I could have the FAIL jump to another slide, then return to the next quiz question, this could work also.