Skip to main content
How to add and calculate scores using variable fields

You can assign scores to each question and calculate the total score, it can be displayed on the success page after the quiz is submitted.

Updated this week

Here’s a step-by-step guide to help you get started:

Step 1: Create a new quiz

Log into your Formaloo account or register for free.

Click on the "+New Formaloo" button and select "Survey" or "Form".

You can also choose a template from the template gallery.

Step 2: Add quiz questions

Add different types of questions (single-choice, multiple-choice, short answer, etc.) to your form. Formaloo supports a variety of question types to make your quiz more engaging.

self grading quiz

Step 3: Add variable fields

Form variables represent hidden calculated values, can be linked to columns, and are usable in other runtime expressions such as calculated value controls and rules.

To add a variable field, click the + button or the “Add field” option.

Add variable fields

Now, add a variable field to your form. Then, set its ID property to total_score or any other value that’s meaningful to you.

You can set the ID property of a field by clicking on it and finding the ID on the right sidebar.

add variable

Step 4: Assign points to questions

For each question, assign points to each possible answer. This is essential for grading the quiz automatically.

In the following, we'll explain how to add scores to your questions to you.

Add score to the questions

Use the logic feature to define correct answers and corresponding points. This ensures that we evaluate each response based on pre-set criteria.

Click on one of the questions in the form editor and go to the logic page from the right-side menu.

Now open advanced logic and add the following logic for each question:

add score to the logic

For example:

If the answer is option 1, Add 10 to the total score.

📝 Additional insights:

How to auto-grade your quizzes

  • You can set up logic to automatically grade your quiz once the correct answers and scoring system are defined.

  • Formaloo will automatically grade responses based on your logic, saving you time and effort.
    Learn how to auto-grade your quizzes.

Step 5: Use answer piping to show the total score

Answer piping lets you display the total graded assessments to the respondents at the end of the quiz.

You can display the total score in a specific section field at the end of the form. This provides immediate feedback to the quiz takers.

Customize the success page

Design a customized success page that respondents will see after completing the quiz.

Customize the success page

Insert the total score into the success page using @total_score to provide immediate feedback to quiz participants.

🧩 Template:

Self-grading math quiz template
Use this template to create a math quiz that automatically assigns scores based on correct answers.
Access the self-grading math quiz template.

Step 6: Share the quiz

You can share your quiz with your audience via different methods:

  1. Generate a shareable link: Formaloo provides a unique link for each quiz. Copy this link to share it via email, or social media, or embed it on your website.

  2. Customize Access: You can customize access settings to control who can take the quiz. Options include public access, password protection, or restricting access to specific email addresses.

Step 7: Share the results

Formaloo makes it easy to share quiz results with respondents.

📝 Additional insights:

How to calculate multiple scores using variable fields

If you want to calculate more than one variable and track different scores (e.g., Math, Science, History), you can add more variable fields.

Each field should have a unique ID (e.g., math_score, geography_score, history_score), and then you can sum them up in a total score field.

Did this answer your question?