Skip to main content
All CollectionsGuidesQuizzes
Create a quiz with multiple scores
Create a quiz with multiple scores
Updated this week

Would you like to use more than just one score, and create different totals for different parts of your form?

This guide covers how you can use multiple variables to score different sections of a form.

We’ll create variables, then use Logic to change variable totals and show different Endings (Thank you screens) based on those totals.

1. First, set up a form with different sections, each of which should be scored individually.

For this example, we’ll create a quiz with 3 questions in each topic (Science, Math, and Geography).

This setup allows individual scores to be tracked across topics, making it easy to see strengths in each area!

2. Next, add a variable for each set of questions. Open the Logic tab, click Variables.

Click + Add custom variable to add new variables to the form.

Add a new variable for each set of questions in your form. Here, we’ve added three variables: Science, Math, and Geography, keeping the starting value of each variable at 0.

Note! Only letters, numbers, and underscores are accepted when creating a custom variable.

Click Save once you’re finished.

3. Now let’s set up the score calculations.

Scoring:

  • Each topic (Science, Math, and Geography) has 3 questions.

  • Total score for each topic is out of 3.

  • Maximum overall score: 9 points.

For each correct answer: +1 point

To do this, go to the Logic tab and select Calculator.

Add logical rules to each quiz question that change the variable’s value according to the answer. In this case, 1 point should be added to the variable Science when the respondent correctly answers Carbon dioxide for the question Which gas do plants absorb during photosynthesis?

Repeat this process for each of the questions. Remember to use the right variable for each question set: logical rules for questions about science should refer to the Science variable, and so on.

You can use whatever grading scheme you like: subtracting points for wrong answers, giving partial credit for partially correct answers, etc.

4. Now you want to add all variables together to calculate total score.

Always add @Science to @score
Always add @Math to @score

Always add @Geography to @score

Click Save when you’re finished.

5. Let’s set up some custom Ending screens to show the Respondent's their scores at the end. With this in mind, we’re going to create two Ending screens:

A. Ending Screen for Passing the Quiz (at least 2 correct answers in each topic)

B. Ending Screen for Not Passing the Quiz (less than 2 correct answers in one or more topics)

Ending screens are tailored to encourage both achievers and learners to keep going!

6. To create an Ending screen, click + next to Endings on the bottom left side panel and enter the text.

Here’s how an Ending might look for respondents who passed the quiz.

This Ending uses Recall information to show the value of each variable at the end of the quiz. That way, respondents can see how they did for each topic. To show variable values, just hit the @ key while typing in any form question, and choose the item you want from the list:

Now, add another Ending screen for respondents who didn’t pass the quiz:

7. Go to the Display Logic tab and set visibility logic to show respective Ending screen based on the score achieved for each topic.

In this example, we show the respondent:

  • First Ending screen if respondent pass the Quiz (at least 2 correct answers in each topic)

If Science Is greater or equal (>=) to 2
AND If Math Is greater or equal (>=) to 2
AND If Geography Is greater or equal (>=) to 2

Then Show First Ending screen

  • In all other cases (that is, if respondents finish with fewer than 2 points for any topic), second Ending screen will be shown as respondent didn't pass the Quiz.

8. Let’s make our quiz a bit prettier. Add a Welcome Screen, Short text (for respondent name) by clicking + Add question.

9. Email results to respondents and yourself (optional)

Email notifications are only available on paid plans (Silver/Gold/Enterprise plans).

You can send email to yourself, team members or respondents and even make them conditional based on quiz scores.

9.a If you would like to send an email to respondent then you’ll need to add an email address question in the quiz by clicking the + Add question button and selecting Email question type.

9.b Create a personalized email

In your form Settings tab in the right panel, go to Email notifications

9.c You can select Self email notifications, Respondent email notifications or Conditional email notifications. Learn more about email notifications.

In this example, we will select Custom email notifications as we want to send different email text based on whether respodent pass the quiz or not.

Click on Set conditions and the popup will show up where you can specify the required conditions for respondent who pass the Quiz (at least 2 correct answers in each topic)

Click on 3 dots to add condition. As you can see, Formly’s logic feature is built into custom email notification, so you can use add condition to set up new logical rules, just like you would when adding logic to your form.

9.d Select respodent email in To field and you can now fully edit the email body text and can also recall responses in Notification email message body by typing "@" and choosing score, name etc from the recall information menu.

9.e Include PDF

Tick "Include PDF" if you want to send completed form as a PDF email attachment.

9.f Click Save to set this custom email notification.

Repeat this process for respondents who didn't pass the quiz (less than 2 correct answers in each topic).

If Science Is lower than (<) to 2
OR If Math Is lower than (<) to 2
OR If Geography Is lower than (<) to 2

That’s it, you have successfully setup custom email notifications.

As a result, the personalized email received by each respondent will show their name, how many total points they scored as well as score for each topic.

Below, you can try out the quiz we built in this guide:

Tip! - You can also import above template in your account to check the logic, how to setup category (variables).

Did this answer your question?