How to set up a quiz with multiple scores using Calculation fields

There are multiple ways to create a quiz in AidaForm. Different approaches can help you create your desired quiz in the easiest way possible. Any approach makes it possible to collect your respondents’ names and emails before displaying the results of the quiz.

  1. Trivia quizzes with multiple-choice questions, right/wrong answers and a total score. Read more
  2. Quizzes with rating scale questions and multiple scores. The approach is ideal for creating personality and Enneagram-like tests to define which personality type the respondent belongs to. Read more
  3. Quizzes with multiple-choice, picture choice, drop-down, rating scale fields, and multiple scores. This approach allows you to create what-suits-you-better and what-is-your-character tests and quizzes. It provides you greater space for creativity, but requires more time to create.

This tutorial provides information about the third approach. Take the quiz below to see the flow and what the results look like. Click the Use Template button to add the quiz to your account and review all settings. Use it as an example or a template — customize any part of the quiz to make it your own!

Click the Use Template button to add the quiz to your account and review all settings. Detailed instructions below will help you to set up a new quiz as well as adjust settings for the existing template.

How it works

This quiz asks questions in order to determine which body type the respondent has. The quiz works with three types: Ectomorph, Mesomorph, Endomorph. Your quiz can have as many types as you need.

Each multiple-choice question on our quiz contributes to calculate a score for every of three body types. Each answer for a multiple-choice question contributes to one body type only*.

*You can also set your quiz so that the same answers for a question contribute to different types.

At the end of the quiz, your respondents learn what body type they have and get recommendations regarding the diet and workout intensity that is proper for them.

Use multiple-choice, picture choice, drop-down and rating scale, and slider fields to ask questions

To ask questions, the quiz employs multiple-choice fields only, but you can also use picture choice, drop-down, rating scale or slider fields.

For each question, respondents pick the option that describes them best.

Example:

How to Set up What-suits-you-better Quiz

You can add as many options as you need.

Calculation fields to calculate scores

To determine which body type a respondent has, we need to calculate scores the respondent gets for three existing types - Ectomorph, Mesomorph, Endomorph - and then find which score is higher.

To calculate a score for multiple-choice, picture choice, drop-down, rating scale and slider fields, we need to use the Calculation field.

To set up the Calculation field:

  1. Add the Calculation field to your form
  2. Name the field
  3. Click the green cog button to open the Settings panel for the Calculation field.
    How to Set up What-suits-you-better Quiz
  4. Set the initial value for the calculation, if required and click the Add Calculation button. You will get the When - Then condition fields.
    How to Set up What-suits-you-better Quiz How to Set up What-suits-you-better Quiz
  5. Use drop-down menus to choose available options and set up the conditions.

When the field ‘My sport activity level is…’
contains: Low
Then Add 1

Add and set up the second condition:

When the field ‘How would you describe your bone structure?’
contains: large
Then Add 1

Continue to add conditions till you set up calculations for all existing questions. There are eight questions on our quiz, that is why we have set up eight conditions to calculate the score for the Endomorph body type:
How to Set up What-suits-you-better Quiz How to Set up What-suits-you-better Quiz How to Set up What-suits-you-better Quiz How to Set up What-suits-you-better Quiz How to Set up What-suits-you-better Quiz How to Set up What-suits-you-better Quiz How to Set up What-suits-you-better Quiz How to Set up What-suits-you-better Quiz

To calculate scores for three existing body types, we need to add and set up three Calculation fields on our form. Read more about how to use the Calculation field.

How can I find a maximum score?

To find the maximal score, we use a Formula field (that you can name Body Type) and an easy math.js function that will do all the work:

m = max(@Ectomorph , @Mesomorph, @Endomorph);

Use the @ function to insert names of your type calculation fields into the Formula field. Read more about how to use the Formula field.

How can I display a result page with the description of the respondent’s type after the quiz is submitted?

You can set conditional After Submit redirects! You will find this functionality in the Builder -> Set Up -> After Submit section, but first you will need to do the following:

  1. Create separate pages with images and descriptions of every type for your quiz. In our example, we have created three pages to cover all cases. This is one of the pages: How to Set up What-suits-you-better Quiz
  2. Add some conditional steps to the formula field to define the name of the type that has the maximum score. The conditional steps look like this: Condition ? A : B , which returns A if the Condition is true and B otherwise.

For example, the line t = m == @Ectomorph? 1 : t; asks if the maximum is Ectomorph. If yes, then the result value is 1, if not, the result value left unchanged.

Why do we need 0? Because we need a starting point for comparison.

t = 0;
t = m == @Ectomorph ? 1 : t;
t = m == @Mesomorph ? 2 : t;
t = m == @Endomorph ? 3 : t;
t

Now the Body Type formula field not only determines the maximum value, but knows which of the body type is assigned to it. The Body Type field on our form looks like this:

How to Set up What-suits-you-better Quiz

Please note that we must use semicolons to separate lines. The last line must not have a semicolon!

After doing this, everything’s ready to set up conditional After Submit redirects and display pages with custom content and, maybe, special offers for your respondents.

Please visit the Builder -> Set Up -> After Submit section of our example quiz to see what it can look like. Here is just a small part to illustrate the general idea:

How to Set up What-suits-you-better Quiz

See more quiz templates that employ Calculation fields

Request a Form for Free