Skip to main content
Inspiring
August 2, 2017
Answered

Adjust quiz results for survey

  • August 2, 2017
  • 1 reply
  • 522 views

Hi, I have a survey with 20 questions, which the user answers with yes or no. Is there a way to show on the results slide what their ratio was? How many no's and yes's?

 

Thanks!

This topic has been closed for replies.
Correct answer Lilybiri

By definition survey questions are not scored, the score slide has not much sense....

If you want to count the number of Yes or No and show those numbers on a custom 'score' slide, two approaches are possible:

  • Easiest approach will sound strange: make the questions scored, leave the Yes as correct answer. In that case the quizzing system variable cpQuizInfoTotalCorrectAnswers will have counted the number of Yes. To calculate the number of No, you'll need a short advanced action On Enter for the 'custom score slide' like this:

            Expression v_No =  cpQuizInfoTotalQuestionsPerProject - cpQuizInfoTotalCorrectAnswers
            Continue
     
Insert the variables cpQuizInfoTotalCorrectAnswers and v_No (user variable) in a text container on the custom score slide

  • If you don't want to use that first approach (maybe you have also real scored quiz), you will have to create two counters v_Yes and v_No with a start value of 0. To populate them after each question, use the event 'After Survey' (Quiz Properties) to trigger a conditional advanced action:
        IF cpQuizInfoAnswerChoice is equal to Yes
            Increment v_Yes by 1
            Go to Next Slide
       ELSE

                 Increment v_No by 1

                 Go to Next Slide

         Insert the variables v_Yes and v_No in a text container on the custom score slide

1 reply

Lilybiri
LilybiriCorrect answer
Legend
August 2, 2017

By definition survey questions are not scored, the score slide has not much sense....

If you want to count the number of Yes or No and show those numbers on a custom 'score' slide, two approaches are possible:

  • Easiest approach will sound strange: make the questions scored, leave the Yes as correct answer. In that case the quizzing system variable cpQuizInfoTotalCorrectAnswers will have counted the number of Yes. To calculate the number of No, you'll need a short advanced action On Enter for the 'custom score slide' like this:

            Expression v_No =  cpQuizInfoTotalQuestionsPerProject - cpQuizInfoTotalCorrectAnswers
            Continue
     
Insert the variables cpQuizInfoTotalCorrectAnswers and v_No (user variable) in a text container on the custom score slide

  • If you don't want to use that first approach (maybe you have also real scored quiz), you will have to create two counters v_Yes and v_No with a start value of 0. To populate them after each question, use the event 'After Survey' (Quiz Properties) to trigger a conditional advanced action:
        IF cpQuizInfoAnswerChoice is equal to Yes
            Increment v_Yes by 1
            Go to Next Slide
       ELSE

                 Increment v_No by 1

                 Go to Next Slide

         Insert the variables v_Yes and v_No in a text container on the custom score slide

Inspiring
August 2, 2017

Wonderful! Approach 1 works just fine, thank you!!

Lilybiri
Legend
August 2, 2017

You're welcome!