Last updated on December 30, 2022 by Formidable Team

How To Create a Conditional Logic Quiz in WordPress (aka Chained Quiz!)

Ever taken a quiz that kept asking questions that clearly didn't apply to you? A conditional logic quiz fixes that by changing what each visitor sees based on their answers. In this guide, we'll show you how to build one in WordPress with Formidable Forms, starting from a ready-made template.

How to Create a Conditional Logic Quiz in WordPress

Approximate read time: 8 minutes

What is a conditional logic quiz?

A conditional logic quiz is a quiz where a person's answers to earlier questions change what they see later. Questions chain together based on responses, which is why you'll also hear these called chained quizzes or branching quizzes.

A flat quiz shows every question to every person. A conditional logic quiz shows each person only the questions that match their path. Pick "beginner" on question one, and you get beginner questions. Pick "advanced," and the quiz skips ahead.

That one change does a lot of work:

  • Higher completion rates. People finish quizzes that feel relevant. Nobody wants to click through questions that clearly don't apply to them.
  • Better data. Every answer comes from a question that fits that person's path, so your results and segments are cleaner.
  • Personalized results. Product recommenders, "which plan fits you" quizzes, and personality quizzes all depend on branching to feel personal.
  • More leads. A quiz that adapts to the visitor earns enough trust to ask for an email address at the end.

You see the pattern everywhere: BuzzFeed viral quizzes, eCommerce product finders, course placement tests, support troubleshooters, and lead qualification quizzes all run on the same show-and-hide logic.

Face shape quiz example

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

What you need to build one in WordPress

You need two things from Formidable Forms:

  1. Conditional logic, which is included in every paid plan, Basic and up. This is what shows and hides questions based on answers.
  2. The Quiz Maker add-on, which handles scoring, grading, and results pages. Quiz Maker is included in the Business and Elite plans.

So to build the full scored, branching quiz in this tutorial, you'll want the Business plan or higher. If you only need branching questions without automatic scoring, like a product recommender that ends in a tailored message, then conditional logic on the Basic plan handles that on its own.

Once your plan is active, install and activate the Formidable Forms plugin on your site. Then go to Formidable โ†’ Add-Ons, find Quiz Maker, and enable it. That's the whole setup.

Formidable Add-Ons page with the Quiz Maker add-on featured and its toggle turned on

Start with a conditional logic quiz template

You don't have to build your quiz from a blank form. Formidable Forms ships with quiz templates that install in one click, and they're the fastest way to get a working chained quiz you can customize.

  1. Go to Formidable โ†’ Forms and click Add New.
  2. Search the template library for quiz.
  3. Pick the Quiz Template (or a specific one like the trivia or personality quiz template) and click Create Form.
Quiz Templates Formidable Forms

The template loads a complete quiz into the form builder: questions, answer choices, and a preconfigured Quiz action for scoring. From here, your job is just to swap in your own questions and add the branching logic, which is exactly what the next three steps cover.

The template's questions are normal form fields, so you can add, remove, or reorder them by dragging. When you add your own, stick with radio buttons, checkboxes, and dropdowns; they give conditional logic clean answer values to branch on.

How to create a conditional logic quiz in WordPress

With the template installed, the whole build is three steps: add the branching logic, set up scoring, and publish the quiz on your site.

Step 1: Add conditional logic to your quiz questions

This is the step that turns a flat quiz into a chained quiz. You'll set each follow-up question to appear only when a specific earlier answer is chosen.

In the form builder, click the field you want to show or hide. In the Field Options panel on the left, open Advanced and click Add Conditional Logic.

Add Conditional Logic Settings

Set the rule to Show this field if and choose the earlier question and the answer that triggers it. Say you're building a barber shop's "find your perfect haircut" quiz:

  • Question 1: "How do you like your hair?" with the options Short and Long.
  • The "Which short style?" question gets the rule: show if Question 1 equals Short.
  • The "Which long style?" question gets the rule: show if Question 1 equals Long.

Each visitor now sees only the branch that matches their first answer. You can stack multiple rules on one field with any/all matching, so a question can appear only when several earlier answers line up. Chain rules across as many questions as you want; three or four levels deep is common for product finders.

Two tips that save headaches:

  • Sketch the branches first. A two-minute flowchart on paper prevents orphaned questions that no path can reach.
  • Test every path. Use Preview and click through each branch before you publish. It's much easier to catch a broken chain now than after entries start coming in.

When your logic is set, click Update to save the form.

Step 2: Set up quiz scoring

If your quiz needs a score, a grade, or right-and-wrong answers, then the Quiz action handles it. Building a recommender with no score? Skip to Step 3.

Go to Settings โ†’ Actions & Notifications inside your form. Because you started from the quiz template, a Quiz action is already attached; click it to open the options. If you built from scratch, add the Quiz action from the list.

Formidable Forms Updated Quiz Form Action

Click Customize Quiz Scoring to mark the correct answer for each question and set how much each one is worth. Weighted scoring is useful in branching quizzes, since different paths can have different question counts.

Then choose what quiz takers see when they finish:

  • Their score, as points or a percentage
  • Their own answers, with or without the correct ones highlighted
  • A custom message based on their result, which is how you build personality-quiz style outcomes

Because scoring runs through the same form, your conditional logic and your scoring work together automatically. Questions a user never saw don't count against them.

Step 3: Publish your quiz on your site

Last step: put the quiz in front of visitors. Open the page or post where you want it, add a block, and search for Formidable Forms. Select the block, then pick your quiz from the dropdown.

Formidable Forms block

Prefer a shortcode? Every form has one under Formidable โ†’ Forms, and it works in widgets, page builders, and templates.

Update the page and your conditional logic quiz is live. Every submission is saved as an entry in WordPress, so you can review results, export them to CSV, or send them to your email marketing tool. Quiz takers who opt in become leads with their full answer path attached, which tells your sales or marketing follow-up exactly what they care about.

Ready to build your branching quiz?

That's how you create a conditional logic quiz in WordPress: install the Quiz Maker add-on, load a quiz template, add show-and-hide rules to your questions, and publish. Three steps, no code, and every visitor gets a quiz that adapts to their answers.

If you're still deciding what kind of quiz to build first, start with the basics in our guide to creating a quiz in WordPress, then come back and add the branching. Once you've seen a chained quiz qualify leads on autopilot, flat quizzes are hard to go back to.

Get Formidable Forms and build your first branching quiz today.

What plan do I need for a conditional logic quiz in Formidable Forms?

Conditional logic is included in every paid plan, Basic and above. The Quiz Maker add-on, which adds scoring, grading, and results pages, is included in the Business and Elite plans. For a fully scored chained quiz, choose Business or higher.

What's the difference between a chained quiz and a conditional logic quiz?

They're the same thing. "Chained quiz" describes the experience: questions chain together based on answers. "Conditional logic quiz" describes the mechanism: show-and-hide rules attached to each question. Branching quiz is a third name for the same format.

Is there a ready-made conditional logic quiz template?

Yes. Formidable Forms includes quiz templates in the form template library. Go to Formidable, then Forms, then Add New, and search for "quiz." The template installs the questions and the scoring action in one click, and you add your branching rules on top.

Can different quiz paths have different results?

Yes. You can show custom messages based on the final score or on specific answers, so each branch can end with its own recommendation, result type, or next step. Questions a user never saw are not counted against their score.



This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

Complete your purchase
Don't forget your purchase!
Complete Purchase
Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms