Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Multi-step form loses progress on back: how to find and fix it

PRF-236Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A multi-step form splits a long form into several screens, such as contact details, then project details, then budget. The problem appears when a visitor goes back, either with your on-page Back button or the browser's Back button, and the answers they already gave are gone.

There are two common versions. In the first, the form shows all steps on one URL and Back leaves the page entirely, taking the visitor to the previous site. In the second, Back returns to the form but the fields are empty or the form restarts at step 1.

Why it costs you leads or sales

People press Back to correct a typo or check an earlier answer. If they lose their work, they must retype everything or leave. Most leave, and you never see them, because they abandoned mid-form and no lead was submitted.

It also hurts on mobile, where the hardware or gesture Back is used constantly. The impact is rated medium because it only hits people who go back, but those are often careful, interested buyers.

Visitors who reach step 3 and finishExample numbers
Visitors who reach step 3 and finish (example)Back wipes answers: 35 %; Back keeps answers: 80 %031613580Back wipes answersBack keeps answers%

Example: of visitors who press Back at step 3, a form that keeps answers lets more of them finish. Numbers are illustrative, not measured.

Where progress is lost
  1. Step 1Name and email entered
  2. Step 2Project details entered
  3. Press BackForm resets or page leaves
  4. Retype answersVisitor must start over
  5. SubmitLead never arrives

The visitor goes back to fix one answer and the form resets.

How to check if your site has it

Test the Back behaviour by hand
  1. Fill in step 1 and continue

    Use realistic test data and move to step 2.

  2. Fill in step 2 and continue to step 3

    Stop before the final submit, or use a test lead you can delete.

  3. Click your on-page Back button

    Check that step 2 still shows your answers.

  4. Press the browser Back button

    Note whether you move one step back, return to step 1, or leave the page.

  5. Go forward again and refresh

    Check whether answers survive a reload. Repeat on a phone using the swipe or hardware Back.

What you might see and what it means
What happens on BackLikely cause
Leaves the page entirelySteps change without history entries (one URL, no pushState)
Returns to step 1 with empty fieldsState held only in memory and the page reloads
Previous step shows but fields are blankStep is re-rendered and values are not restored
Works in one browser onlyBrowser autofill or cache differences

How to fix it

The fix has two parts: store each answer when the visitor moves on, and make each step a history entry so Back moves one step. Many form builders have a setting for this, so check yours before writing code.

Fix by platform
  1. Check your form plugin's multi-step settings

    In plugins such as Gravity Forms, WPForms, Fluent Forms or Forminator, look for options such as save and continue, progress saving, or back button behaviour. Options vary by plugin and version.

  2. Update and test for conflicts

    Update the form plugin, then disable page-caching or optimisation plugins for the form page to see if they cause the reset.

Keep answers and make Back move one stepjavascript
const form = document.querySelector('#lead-form');
const steps = [...form.querySelectorAll('[data-step]')];
let current = 0;

function save() {
  const data = Object.fromEntries(new FormData(form));
  sessionStorage.setItem('lead-form', JSON.stringify(data));
}

function restore() {
  const data = JSON.parse(sessionStorage.getItem('lead-form') || '{}');
  for (const [name, value] of Object.entries(data)) {
    const field = form.elements[name];
    if (field && field.type !== 'file') field.value = value;
  }
}

function show(index) {
  current = index;
  steps.forEach((s, i) => (s.hidden = i !== index));
}

function next() {
  save();
  history.pushState({ step: current + 1 }, '', '#step-' + (current + 2));
  show(current + 1);
}

window.addEventListener('popstate', (e) => {
  show(e.state && e.state.step ? e.state.step : 0);
  restore();
});

restore();
show(0);
Back button behaviour

Before

  • Back leaves the form page
  • Answers are blank when you return
  • Visitor retypes or quits

After

  • Back moves from step 3 to step 2
  • Earlier answers are filled in
  • Visitor corrects one field and continues
Try the Back buttonInteractive
Form does not save progress

Progress not saved

Leads or data lost

Visitor presses Back, answers are blank, and many abandon the form.

Toggle the cause to see how saving progress changes what a visitor who goes back experiences.

How to confirm it's fixed

Confirm checks
  • On-page Back shows the previous step with answers filled in
  • Browser Back moves one step and does not leave the form
  • Forward again keeps the answers
  • A page refresh on step 2 or 3 does not lose data, or clearly tells the visitor what to do
  • Works on desktop Chrome, Safari and a real phone
  • Final submit still sends the lead and reaches your inbox or CRM
  • Saved data is cleared after a successful submit

How to prevent it happening again

Add the Back test to your checklist whenever you change the form, its plugin, or the theme. Form plugin updates and new caching or optimisation settings are common causes of regressions. Keep a short note of which steps and fields exist, so you can retest after edits.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. Its robot visitor runs your form journey on a schedule and checks sequential steps only: it moves through the steps in order, one after another, and checks each one works. It does not go back and forth, so it does not press Back and check that earlier answers are still there.

If a step breaks, for example the Next button stops working or the final submit fails, FunnelGuard re-checks from a second region and sends one alert with a screenshot and a likely cause. It also checks the tracking hits and whether the test lead reaches your inbox and CRM.

To cover the rest by hand, run the Back test from the checking section after every change to the form, on desktop and on a phone. FunnelGuard's Free plan covers 1 site and 2 journeys with daily checks and no card, so the forward journey stays monitored while you test Back yourself.

Questions people ask

Why does my multi-step form lose data when I press Back?

Usually the steps are shown and hidden on one page without history entries, or answers are held only in memory. Back then leaves the page or reloads the form and the values are gone. Save answers on each step and push a history entry per step.

How do I save progress in a multi-step form?

Write the field values to sessionStorage when the visitor clicks Next, and restore them when a step is shown. Many form plugins also have a save progress or save and continue setting. Clear the saved data after a successful submit.

Why does the browser Back button leave my form instead of going to the previous step?

The steps probably share one URL and no history entry is created when the step changes. Use history.pushState on each Next and listen for the popstate event to show the previous step.

Is sessionStorage or localStorage better for form progress?

sessionStorage is usually better for lead forms, because it clears when the tab closes and does not leave personal data on shared devices for long. localStorage keeps data until cleared, which suits long forms people return to days later, but store as little personal data as possible.

Does a multi-step form lose leads compared with a single-page form?

It can, if Back or refresh wipes answers. A multi-step form that preserves answers and lets people move back freely avoids that loss. Test the Back behaviour rather than assuming either format is better.

Can FunnelGuard detect when my form loses progress on Back?

Only partly. FunnelGuard checks sequential steps, moving forward through the form in order, and alerts you if a step or the submit fails. It does not press Back, so test that part by hand.

How do I test the Back button on a multi-step form?

Fill in two steps, click your on-page Back button, then the browser Back button, and check that answers remain and you move one step at a time. Repeat on a real phone, and after refreshing the page.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: sequential steps only.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.