Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Tab order jumps around form fields: how to find and fix it

CNV-027Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Pressing the Tab key moves focus (the highlighted element that receives typing) from one field to the next. The browser follows the order of elements in the page code, the DOM, unless you override it. If the order skips a field, jumps back up, or lands in the footer halfway through the form, the tab order is broken.

Common causes are CSS that moves fields visually (order, float, absolute positioning, grid areas), positive tabindex values such as tabindex="5", multi-column layouts built in a page builder, and popups or widgets that grab focus. WCAG success criterion 2.4.3 (Focus Order) asks for a logical sequence.

Why it costs you leads or sales

People who use a keyboard, switch device or screen reader cannot complete a form that jumps around. Power users who tab between fields also get frustrated and type into the wrong box. The share of visitors affected is usually small, so the business impact is low, but each affected visitor is a lost lead, and accessibility complaints can carry legal risk in some markets.

Where a keyboard visitor drops out
  1. Open landing pagePage loads fine
  2. Tab to NameFocus lands correctly
  3. Tab to EmailFocus jumps to Message or the footer
  4. Submit formVisitor gives up
  5. Lead in CRMNever created

Tab order breaks mid-form, so the later steps never happen.

How to check if your site has it

Test the tab order by hand
  1. Put the mouse away

    Open the page with the form and click an empty area near the top so focus starts at the page start.

  2. Press Tab repeatedly

    Watch the focus outline. It should move through fields top to bottom, left to right, ending on the submit button. Use Shift+Tab to go backwards.

  3. Check the outline is visible

    If you cannot see which field is focused, the CSS may be hiding it with outline: none. That is a separate accessibility fault but makes testing harder.

  4. Inspect tabindex values

    In browser DevTools, search the Elements panel for tabindex=. Any value above 0 is a red flag.

  5. Run an accessibility audit

    Run Lighthouse (Chrome DevTools) or axe DevTools. They flag positive tabindex values. Then test with a screen reader such as NVDA, VoiceOver or JAWS.

How to fix it

The best fix is to make the source order match the visual order, and to avoid positive tabindex altogether. Use tabindex="0" only for custom controls that need to be focusable, and tabindex="-1" for things that should not be in the tab sequence.

Logical order with no positive tabindexhtml
<form action="/contact" method="post">
  <label for="name">Name</label>
  <input id="name" name="name" type="text">

  <label for="email">Email</label>
  <input id="email" name="email" type="email">

  <label for="message">Message</label>
  <textarea id="message" name="message"></textarea>

  <button type="submit">Send</button>
</form>
Fix by platform
  1. Reorder fields in the form plugin

    In your form builder (Contact Form 7, WPForms, Gravity Forms and others), drag fields into the order you want. Do not rely on CSS to reorder them.

  2. Check columns and theme CSS

    Multi-column layouts can read across rows in the code but down columns on screen. Switch to a single column or reorder to match. Search theme and custom CSS for order: and tabindex.

Tab order before and after

Broken

  • Message field comes before Email in the code
  • Submit button has tabindex="1" and gets focus first
  • Focus leaves the form halfway

Fixed

  • Code order matches screen order
  • No tabindex above 0
  • Tab ends on the submit button

How to confirm it's fixed

Confirmation checks
  • Tab moves through every field in reading order
  • Shift+Tab reverses the same path
  • Focus outline is visible on each field
  • Enter or Space activates the submit button
  • No focus is trapped in a popup or widget
  • Lighthouse or axe shows no tabindex warnings
  • Check again on mobile layout, since columns may stack differently

How to prevent it happening again

Add a keyboard-only pass to your release checklist for any page with a form. Re-test after changing a theme, page builder layout, form plugin or adding a popup, because these often change the markup order.

How FunnelGuard handles this

This is outside what FunnelGuard checks. FunnelGuard runs real customer journeys on a schedule and checks steps, tracking hits and test leads, but it does not judge keyboard focus order. For this issue you need an accessibility auditing tool, such as Lighthouse, axe DevTools or WAVE, plus a manual keyboard and screen reader test.

Frequently asked questions

Questions people ask

Why does the Tab key jump around my form fields?

Tab follows the order of elements in the page code, not their position on screen. If CSS moves fields visually, or positive tabindex values are set, the focus order will differ from what people see.

How do I fix tab order on a form?

Reorder the HTML or the form builder fields so the code order matches the visual order, and remove tabindex values above 0. Then press Tab through the form to confirm.

Should I use tabindex to set the order of form fields?

Generally no. Positive tabindex values override natural order and are hard to maintain. Use tabindex="0" for custom controls that must be focusable and tabindex="-1" to remove items from the sequence.

How do I test keyboard navigation on my website?

Use only the keyboard: Tab to move forward, Shift+Tab to go back, Enter or Space to activate. Check that focus is visible, follows reading order and never gets trapped. Add an audit tool like axe or Lighthouse and a screen reader test.

Is a wrong tab order an accessibility violation?

Yes, a illogical focus order can fail WCAG 2.4.3 (Focus Order). Whether it creates legal exposure depends on your country and sector.

Can FunnelGuard detect tab order problems?

No. FunnelGuard monitors journeys, tracking and lead delivery, not keyboard focus order. Use an accessibility audit tool and manual keyboard testing for this.

Why is my keyboard stuck inside a form or popup?

A script or widget may be trapping focus, for example a modal without a close control reachable by keyboard. Make sure Escape closes it and focus returns to the page afterwards.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.