Skip to content
All notes

Logic

Logic jumps without the spaghetti

Branching forms tangle fast. Here's the pattern we recommend, and the test we run before publishing any form with more than five jumps.

Ben AchterbergProduct manager3 min read

The first logic jump feels like magic. Ask “Are you coming?” and, if the answer is no, skip straight to the end. The tenth jump feels like debugging someone else's spreadsheet. By the twentieth, the person who built the form is the only one who dares edit it, and they're on holiday.

We see a lot of branching forms (about a third of Bloop forms published last month use at least one jump), and the tangled ones fail in the same few ways. The good news: almost all of them untangle with one idea. Decide what each jump is for before you draw it.

Three kinds of jump

Every jump in every form we've looked at does one of three jobs. Keeping them apart is most of the battle.

Skips

A skip removes questions that don't apply. “No dietary needs? Skip the allergy questions.” Skips only move forward, and they never change what happens at the end. They're safe. You can have dozens.

Routes

A route sends people down a genuinely different path: an event sign-up that becomes a volunteer application, a support form that splits into billing and bugs. Routes are where tangles start, because paths tend to merge again later and nobody remembers which answers exist on which side.

Endings

An ending decides what people see and what happens when they're done: which thank-you screen, which email, whether the answer goes to the sales channel or the support inbox. Endings should depend on as few answers as possible, ideally one or two, and those answers should be required.

The pattern: route once, early

The forms that stay readable route early and route once. Put the question that decides the path within the first three screens, send people down a lane, and inside each lane use only skips. If the lanes share questions (contact details, say), merge them once, near the end, and then decide the ending.

Q1   What brings you here?          ← route
      ├─ Attend     → A1  A2  A3      (skips inside)
      ├─ Volunteer  → V1  V2  V3  V4
      └─ Sponsor    → S1  S2
Q9   Your name and email            ← lanes merge once
Q10  Anything else?
END  decided by Q1                  ← one answer picks the ending
Route early, skip inside, merge once, end by one answer

On Bloop's logic map this shape is easy to see: three coloured lanes leave one question and come back together at the contact details. When you see lines crossing between lanes in the middle of the map, that's the spaghetti forming.

Hidden fields are not a jump

Many tangles come from using jumps to carry information: “if they came from the newsletter, jump to the newsletter version of question 6”. Don't. Pass the source in as a hidden field (?src=newsletter on the link) and use it in the wording of a single question, or in the ending. One question that changes its words is far easier to maintain than two near-identical questions joined by a jump.

The test we run before publishing

Before any form with more than five jumps goes live, we fill it in once per path. Not once per question: once per path, from the first screen to an ending. It sounds slow; for a form with three lanes it takes about four minutes.

  1. List the endings. For each, write down the answers that should lead there.
  2. Fill in the form once per list, using the preview's Path panel to confirm which questions you saw.
  3. Check that every required question on each path was actually shown. A required question behind a skip is a form nobody can finish.
  4. Check the ending, the email and the integration that each path triggers.

Bloop does part of this for you. The map flags any question no path can reach, and any ending no combination of answers leads to. But it can't know your intent: it can't tell that volunteers were supposed to see the parking question. Only filling it in can.

When to split the form

Sometimes the honest answer is two forms. If two lanes share fewer than three questions, they are different forms wearing one link. Split them, put a single choice question on a tiny router form (or on your page), and send people to the right one. Each form gets simpler, its results get easier to read, and your drop-off numbers stop mixing two audiences.

The rule of thumb we use: one form, one purpose, one ending decision. Everything else is a skip.

Free for 100 responses a month

Ask your next question with Bloop.

One question at a time, a reason under the personal ones, and a drop-off chart that shows what to fix.