Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Back button loses earlier answers in multi-step forms: fix

CNV-070Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

A multi-step form or quiz splits questions over several screens. Visitors expect two things: the on-screen Back button returns to the previous step with answers still filled in, and the browser Back button does the same. This issue is when either one wipes answers, or throws the visitor out of the form altogether.

It usually has one of three causes. The steps are all one page and the form never adds history entries, so browser Back leaves the page. Each step is a separate page load and the previous page is rebuilt empty. Or a script re-renders the form from scratch and forgets what was typed.

Why it costs you leads or sales

People press Back to fix a mistake or check a choice. If they find empty fields, they must retype everything. Many will not. If browser Back drops them on the previous website page, they have to find the form again and start over. Either way you lose a lead who was already part way through.

It is worse on mobile, where the hardware or swipe Back gesture is the main way to move around, and on long quizzes where a lot of effort is lost at once.

Visitors who press Back and still finishExample numbers
Visitors who press Back and still finish (example)Answers lost: 30 %; Answers kept: 80 %031613080Answers lostAnswers kept%

Example: illustrative numbers only. Of 100 visitors who press Back mid-form, more finish when their answers are kept.

Where the journey breaks
  1. Step 1Visitor enters name and email
  2. Step 2Visitor answers a question
  3. Press BackStep 1 reloads empty or the page is left
  4. ResubmitVisitor gives up
  5. LeadNever reaches your CRM

The visitor goes back to correct step 1 and finds it empty.

How to check if your site has it

This takes five minutes by hand. Use a private window so saved form data does not interfere.

Test back navigation manually
  1. Fill in steps 1 and 2

    Enter realistic answers, including text fields, radio buttons, dropdowns and checkboxes.

  2. Click the form's own Back button

    Check every earlier answer is still filled in and selected.

  3. Go forward, then press the browser Back button

    Note whether you land on the previous step or leave the form. Check the answers again.

  4. Repeat on a phone

    Use the swipe or system Back gesture. Safari and Chrome handle restored pages differently.

  5. Go back several steps, change an answer and continue

    Confirm the changed answer is the one submitted, not the old one.

How to fix it

The general fix has two parts. First, store answers as they are entered so they can be restored. Second, give each step a history entry so browser Back moves between steps. How you do it depends on what builds your form.

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

    In plugins such as Gravity Forms, Fluent Forms or WPForms, look for options like saving progress, 'Save and Continue' or previous-button behaviour. Enable them where they exist.

  2. Update the plugin and test with caching off

    Page caching or optimisation plugins can serve stale step markup. Exclude the form page from cache and retest.

  3. Contact the plugin vendor if it still fails

    If Back still clears answers with default settings, it is a plugin behaviour. Report it with your test steps.

Save answers and make browser Back move one stepjavascript
const form = document.querySelector('#quiz-form');
const steps = [...form.querySelectorAll('[data-step]')];
const KEY = 'quiz-answers';

function save() {
  const data = {};
  new FormData(form).forEach((v, k) => { data[k] = v; });
  sessionStorage.setItem(KEY, JSON.stringify(data));
}

function restore() {
  const data = JSON.parse(sessionStorage.getItem(KEY) || '{}');
  Object.entries(data).forEach(([name, value]) => {
    const fields = form.querySelectorAll('[name="' + name + '"]');
    fields.forEach((f) => {
      if (f.type === 'radio' || f.type === 'checkbox') f.checked = (f.value === value);
      else f.value = value;
    });
  });
}

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

form.addEventListener('input', save);
form.addEventListener('change', save);

function goTo(i) {
  show(i);
  history.pushState({ step: i }, '', '#step-' + (i + 1));
}

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

restore();
history.replaceState({ step: 0 }, '', '#step-1');
show(0);
// Call goTo(n) from your Next button handlers.
Back button behaviour

Before

  • Browser Back leaves the form page
  • Earlier fields come back empty
  • Visitor must restart from step 1

After

  • Browser Back moves one step
  • Earlier answers are restored
  • Visitor can edit and continue

How to confirm it's fixed

Confirmation checks
  • The form's Back button keeps every earlier answer, including radios, checkboxes and dropdowns
  • Browser Back moves one step, not out of the form
  • Swipe Back on a phone behaves the same way
  • Changing an earlier answer and continuing submits the new value
  • A completed submission still reaches your inbox and CRM with all answers
  • Stored answers are cleared after submit

How to prevent it happening again

Add back navigation to your release checklist for any change to the form, theme, plugin or caching setup. Re-run the five-minute manual test after every update. Keep a short written test script so anyone on the team can repeat it, and test on at least one iPhone and one Android phone, since they restore pages differently.

How FunnelGuard handles this

FunnelGuard does not check this yet. Back navigation is not tested today, though it is a possible future check.

What FunnelGuard does do is run your real form journey on a schedule, from the EU or the US, and check each forward step, the tracking hits sent to platforms such as GA4, Google Ads and Meta, and whether the test lead reaches your inbox and CRM. If a step breaks after a form update, you get one alert with a screenshot and a likely cause after a second-region re-check. That tells you the forward path works, but not that Back keeps answers.

For now, watch for this issue manually with the test above after each change, and look in session recordings or support messages for visitors who restart forms. The Free plan covers 1 site and 2 journeys with daily checks and no card, and a free read-only website audit is available.

Questions people ask

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

Usually the form keeps answers only in the page's memory, and Back reloads or leaves the page. If steps are separate pages, the earlier page is rebuilt empty. Saving answers to session storage or the server and restoring them fixes it.

How do I make the browser Back button go to the previous step of a form?

Add a history entry for each step with history.pushState when the visitor moves forward, and listen for the popstate event to show the earlier step. Each step then behaves like its own page without a reload.

Why does the browser Back button leave my quiz instead of going to the previous question?

All questions probably live on one URL with no history entries, so the browser sees only one page. Push a history state for each question, or use a URL hash like #step-2, so Back moves between questions.

Should I store form answers in sessionStorage or on the server?

Session storage is quick and works for non-sensitive answers within one tab visit. Use the server if you need answers to survive across devices or tabs, or for partial lead capture. Never keep sensitive data in browser storage.

Does autocomplete off stop forms from restoring data on Back?

It can. Browsers may skip restoring fields marked autocomplete="off", so removing it from non-sensitive fields can help. Also check that caching or scripts do not rebuild the form on page show.

Does the back button problem affect mobile visitors more?

Often yes. Mobile visitors rely on the system Back gesture, and phone browsers restore pages differently. Test on a real iPhone and Android device, not only a desktop browser.

Does FunnelGuard test the back button in my forms?

No. FunnelGuard does not test back navigation yet; it is a possible future check. It does run your forward form journey on a schedule and checks steps, tracking hits and lead delivery.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.