Open the console

Recovering Onboarding Step Data From an Abandoned Multi-Field Form

When an onboarding step is a multi-field form, losing partial input on refresh or navigation makes a user restart from zero. Save it as they type instead.

Recovering Onboarding Step Data From an Abandoned Multi-Field Form

Some onboarding steps are a single click: connect a provider, confirm an email, dismiss a tooltip. Others are a form with five or six fields — company size, billing address, team invite list, a short description of what the user is trying to do. The second kind has a failure mode the first doesn't: a user fills in three fields, gets pulled away by a phone call or a page refresh, and comes back to find the step exactly as empty as when they started.

That's not a UI bug. It's a data model gap. The checklist step is tracked as a single boolean — done or not done — with no place to put the partial answer in between. Fixing the experience means deciding where that partial state lives and how long it's worth keeping.

Why this step abandons more than a single-click step

A one-action step either happens or it doesn't; there's no intermediate state to lose. A multi-field form has one abandonment point per field, and each additional field is another place the user can be interrupted. The practical result: the longer the form, the more often you'll see a user start it and never see them finish it in the same sitting.

If your onboarding checklist tracks step completion but not step attempts, you can't tell the difference between a user who never opened the form and one who filled in four of six fields and left. Those are different problems with different fixes — one needs the step to be more visible, the other needs the form to remember what they typed.

Where to save partial input

Three options, in order of how much they commit you to:

  • Client-side only (localStorage or sessionStorage). Cheapest to build, works for the common case of a refreshed tab, but doesn't survive a different device or a cleared browser. Fine for a first pass.
  • Server-side draft row, same account, before the step is marked complete. Survives device switches and is queryable — you can see how many drafts exist with no matching completion. This is the right default for anything that matters to the business (billing details, team setup).
  • No persistence, but the form is short enough it doesn't matter. Sometimes the real fix is cutting the form from six fields to two and deferring the rest to a later step. Worth considering before building storage for a form that shouldn't be that long in the first place.

A server-side draft doesn't need its own table if you're already tracking step state in a posts-style completion record — a draft_payload JSON column on the existing step-progress row, written on every field blur or every few seconds, works without a schema migration beyond one column.

A field-level save, not a step-level one

The trap is treating the draft the same way you treat completion: one write when the user clicks "Next." If that click never happens, nothing was ever saved. Save at the field level instead — on blur, or debounced on change — so a user who fills in three fields and closes the tab still has three fields when they come back, even though the step itself never reached "submit."

// debounce per field, not per form submit
function onFieldBlur(stepId, fieldName, value) {
  saveDraft(stepId, { [fieldName]: value }); // PATCH, merges into existing draft
}

The save endpoint should merge into the existing draft rather than replace it, so a user who fills field 1, leaves, comes back and fills field 2 doesn't lose field 1 on the second request.

Deciding when a draft stops being useful

An abandoned draft from six months ago describing a plan the user may have already completed differently elsewhere isn't a convenience to restore — it's stale data that can contradict what's true now. Set an expiry on the draft (a week or a month, picked to match how long your onboarding window realistically stays open) and clear it rather than resurface it past that point. The step should ask fresh rather than guess from old input that might no longer be accurate.

This also matters for account deletion and data retention: a draft containing a user's billing address or team list is personal data like any other, and it should be deleted on the same schedule as everything else tied to the account, not quietly kept forever because it lives in a different column than the "real" record.

What to measure instead of guessing

No search-volume or benchmark numbers are claimed here because none were measured for this product. What is worth instrumenting on your own instance: the ratio of drafts started to steps completed for each multi-field form step. If that ratio is high — many drafts, few completions — the form itself is probably the problem, not the lack of save-on-refresh. If it's low, saving partial input is solving a real but smaller problem, and the bigger lever is elsewhere in the flow. Either way, that's a number you read off your own event log, not one to assume.

For the shape of step completion events to log in the first place, see piping onboarding steps into your analytics. And if the form step is one of several that depend on each other finishing in a particular order, steps completed out of the expected order covers what changes when drafts and completions can race.

Want to see how step state — including an in-progress one — renders in the checklist itself? Try the live preview or read the docs for the steps API.

Try it on your app