Skip to main content

How to create a quiz with scoring and logic

Learn how to build a scored quiz with automatic point tracking, conditional results pages, and logic that routes each respondent based on their score.

What you'll build

By the end of this guide, you'll have a fully functional scored quiz that tracks each respondent's points in real time, then automatically shows a different results page depending on their score, all built without writing a single line of code. You can use this for training assessments, lead qualification quizzes, product recommendation flows, or any scenario where answers should determine an outcome.

When to use this

  • You're running employee training and need to verify knowledge with a pass/fail threshold

  • You want a lead qualification quiz that routes prospects to different offers based on how they answer

  • You're building a product recommendation flow where results depend on the user's inputs

  • You need a knowledge check at the end of an onboarding sequence

  • You run online courses and want learners to see personalized feedback based on their score


Step-by-step to build your quiz with automatic scoring

Step 1: Create a new project

From your Formaloo dashboard, click + New project and choose Form. This starts you with a project that already has one form attached. The form is where you'll build your quiz questions and scoring logic.

Tip: Give your project a clear name (e.g., "Product knowledge quiz") so it's easy to find later.

Step 2: Add questions & style to your quiz

Open the form editor. For each quiz question, add a Multiple choice or Dropdown field. Multiple choice works best for quizzes because it's visually clear and easy to answer on mobile.

For each question field:

  1. Click + Add field and select Multiple choice (or Dropdown)

  2. Type your question as the field label

  3. Add all answer options

  4. Mark one option as the correct answer; you'll reference this when setting up scoring logic in a later step

  5. Click Publish to save changes any time

πŸ’‘ Tip: Keep all questions on one page for shorter quizzes. For longer assessments (10+ questions), use the form's page break feature to split questions across sections.

To change how your quiz looks, go to the Design tab and create your new theme or use one of the themes in the Gallery to give your quiz a fresh and nice look.


Step 3: Add a variable field to track the score

A variable field is a hidden, number-only field that stores a running calculated value; in this case, your quiz score. It never appears to the respondent unless you pipe its value; check out step 5 and 7 to see how you can do so.

  1. Click + Add field and scroll to Variable

  2. Select Integer if you don't want to calculate decimal points. Otherwise, select Decimal.

  3. Name the variable something clear, like "Score" or "Total score"

  4. Set the default value to 0. This is the starting score before any answers are given.

  5. Assign an ID to the score field (e.g., total_score); you'll use this for answer piping in the ending page (step 5) and email templates (step 7).

πŸ“– Learn more about field IDs and answer piping: How to dynamically pull form data into custom emails, PDFs, and AI prompts


Step 4: Set up scoring logic for each question

This is where you assign points when your user selects a correct answer. You'll use Advanced logic, found in the form settings panel on the right side of the form editor.

  1. In the form editor, open the form settings panel on the right side and click Advanced logic

  2. Under each Field click + Add rule

  3. Set the condition: [Your question field] is [correct answer option]

  4. Set the action: Add β†’ [point value] β†’ [your Score variable field] (e.g., Add 1 point to the Total score variable)

  5. Click Save

  6. Repeat this for every question in your quiz


Step 5: Create your results ending pages

A form in Formaloo can have multiple ending pages, each one shown to a different group of respondents based on their score. Create one ending page for each result tier.

To add ending pages:

  1. In the form editor, scroll to the bottom of your form

  2. You'll see the default Ending page. Edit it for your first result tier (e.g., "Well done! You passed.")

  3. To add more ending pages, click + Add ending page at the bottom of the editor

  4. Create one page for each score range, for example:

    • Passed: shown to respondents who scored 8–10

    • Almost there: shown to respondents who scored 5–7

    • Try again: shown to respondents who scored 0–4

  5. Customize each ending page with a title, message, and optional image or link

πŸ’‘ We recommend keeping the default ending page and customizing it to serve as a 'fallback' page for any edge cases.

For example, if there are any discrepancies in logic, or if two variables end up getting the same amount of points (so there's no way to pick the winner based on the highest score) – the user will land on that default ending page.


Step 6: Set up conditional routing to the right ending page

Now you'll tell Formaloo which ending page to show based on the respondent's score. Go back into Advanced logic, this time using the On submit trigger.

πŸ“– Learn more about handling multiple ending pages with Logic: How to set up multiple ending pages with redirect logic

  1. In the form settings panel on the right side, click Advanced logic

  2. Click the On submit tab

  3. Click + Add rule

  4. Set the condition: [Score variable field] is greater than or equal to [minimum score for this tier] (e.g., 8)

  5. Set the action: Go to ending page β†’ [Passed]

  6. Click Save

  7. Add a second rule for the next tier: Score is greater than or equal to 5 β†’ Go to ending page β†’ Almost there

  8. Add a third rule (or leave the default ending page) for the lowest score tier

πŸ’‘ Formaloo evaluates On submit rules in order, top to bottom. Put your highest score tier first so it matches before falling through to lower tiers.


Step 7: (Optional) Email respondents their score

If you want respondents to receive a confirmation email showing their score, set up a Send email action in your On submit logic.

  1. In Advanced logic β†’ On submit, add a new rule (no condition needed if it should fire for everyone)

  2. Set the action to Send email

  3. Select or create a custom email template. Add @score in the template body to pipe in the respondent's score automatically

  4. Set the recipient to the respondent's email field (select it from the field dropdown)

πŸ“– Learn how to create and use custom email templates: How to create and send custom email templates


Step 8: Preview and publish your quiz

  1. Click Preview in the top bar to test your quiz, answer each question and confirm the correct ending page appears

  2. Test each score tier by submitting multiple times with different answer combinations

  3. Once everything works, click Share and copy your quiz link, or embed the form on your website

πŸ’‘ Tip: If you're building this quiz for a portal where users log in to take it and see their own history, you can activate a client portal on this project. See how to create a portal and manage user access for the full setup. Custom domains are available on the Business plan or via the Brand removal add-on.


Final result

You now have a scored quiz that automatically tallies points as respondents answer, then routes each person to a personalized results page based on their total score. If you added the email step, respondents also get a confirmation showing their score with no manual work on your end. The quiz works for unlimited respondents, tracks every submission in your Formaloo dashboard, and can be embedded anywhere or shared as a standalone link.


Did this answer your question?