7 Checks for Multi-Step Form Validation Errors

Test the whole form journey - not just each field. A valid answer can still fail after a step change, a draft reload, or submission. Start with the main path, then test skipped questions, changed answers, and failed requests.
These 7 checks cover where validation can break:
- Required fields: Blank answers should block progress only when the fields apply.
- Formats and limits: Test accepted values, rejected values, and entries just outside each limit.
- Conditional rules: Check every branch and keep old, hidden answers out of submissions.
- Step navigation and focus: Check Next, Back, keyboard controls, and focus after errors.
- Saved answers and drafts: Confirm that edits, uploads, and saved progress survive a return visit.
- Error messages and accessibility: Make errors clear, linked to their fields, and usable with screen readers.
- Server validation and request failures: Reject invalid data, preserve safe answers, and prevent duplicate submissions.
Repeat these checks on desktop, mobile, and with a keyboard. Record failures without personal data, fix blocked submissions and lost answers first, then retest affected paths.
7 Checks for Multi-Step Form Validation Errors
Multistep Form Custom Hook With React And TypeScript
sbb-itb-5f36581
1. Check Required Fields
Start with the fields that can block the current step. Map each field label to its validation rule, and log the label, input name, condition, and expected message. Fields labeled Required or marked with an asterisk must follow the same rule on the client and server. Optional fields must accept blank answers. aria-required signals that a field is required; it does not enforce validation.
For each required field, test untouched, blank, typed-then-deleted, and whitespace-only input. Include spaces, tabs, and line breaks where allowed. Trim text on both the client and server - a simple “not empty” check can let spaces pass.
Select Next with one required answer missing, then with several missing. The form should stay on the current step, flag the missing fields, and move focus to the first error. Missing answers should trigger required-field messages, not format errors. Questions on later steps should not show errors.
Hidden or skipped questions must not block progress. Tie required-field rules to visibility, and test both directions: hide a required field and continue, then reveal it empty and confirm that Next is blocked. Check that a previously entered value does not block progress once its field is hidden. Repeat these checks after restoring a saved draft.
Reopen a draft saved before a rule change. Newly required answers should block completion, while optional or hidden fields should not. Keep valid saved answers and direct users only to answers missing under the current rules.
2. Check Field Formats and Limits
After checking required fields, confirm that each step applies the format and limit rules correctly. Test both accepted and rejected formats - not just common entries.
For email fields, try plus tags, subdomains, mixed case, missing domains, and surrounding spaces. Keep email syntax errors separate from verification failures. For phone fields, test digits, spaces, parentheses, hyphens, country codes, and extensions. State whether the field accepts only U.S. numbers or international numbers, too. For ZIP Codes, test both 5-digit ZIPs and ZIP+4. Treat ZIP Codes as text to preserve leading zeros.
For dates, enforce MM/DD/YYYY and reject impossible or out-of-range dates, including invalid leap days. For URLs, test paths, queries, fragments, missing schemes, spaces, unsupported protocols, and subdomains. Tell users whether the form adds https:// or requires them to enter it.
Check minimum and maximum lengths, plus one character below and above each limit. Paste line breaks, accented characters, and emoji. Confirm how the form counts characters and whether spaces count toward the limit. For numbers, test zero, negative values, range limits, and decimal precision. For budgets, check dollar signs and thousands separators, and make sure normalization doesn't change the amount.
For uploads, test allowed extensions and MIME types, a file exactly at the size limit, one byte over, an empty or corrupt file, and too many files. Also check duplicate filenames, non-English filenames, interrupted uploads, and disallowed files renamed with an allowed extension. Show file type, size, and count limits before users select files. Confirm that the server enforces these limits, even when client-side checks pass.
Repeat format tests with pasted and autofilled values. Then move forward, go back, and submit. Repeat upload checks through submission, including pasted files where supported. Compare the displayed value with the request payload to catch unexpected changes to capitalization, punctuation, or decimal precision. Use the same format rules at every stage. When a check fails, name the field, explain which rule failed, and provide a fix when known.
3. Check Conditional Rules and Related Fields
After testing single-field rules, check validations that depend on earlier answers. Map each controlling answer to the fields and steps it opens, the fields it makes required, and any values that must match. Track the trigger answer, dependent field, required state, and route. Test every configured branch. Reaching the right step doesn’t mean its validation works.
When a dependent field appears, test it with empty, valid, and invalid inputs. Its rules should apply only while the condition is active. Hidden dependent fields must not block progress.
For cross-field rules, test valid, invalid, boundary, and incomplete combinations. Include equal values, missing values, and changes to either field. Revalidate dependent fields whenever their source value changes - even when users go back and edit an earlier answer.
After switching branches, check what the form submits. Complete one branch, go back, and change the controlling answer. Confirm that outdated values are cleared or excluded from submission and that inactive requirements no longer apply. Then switch back to check that the original branch still validates correctly. Inspect the submitted payload: hiding a field doesn’t prove that its value or validation has been removed.
For forms built with Reform, test every configured path forward and back. Record the controlling answer, expected route, validation result, and any unexpected payload values so you can reproduce issues and retest fixes.
4. Check Step Navigation and Focus
Once branch logic passes testing, check how users move between steps. Try Next with missing required answers, invalid formats, multiple errors, and blank optional fields. Invalid answers should block progress; optional blanks should not. Back should return users to earlier steps without losing their work.
Test clickable step indicators, browser Back/Forward, reload, and direct step URLs. None should let users skip required validation. Step indicators should identify current, completed, and upcoming steps with text - not color alone - and mark the current step with aria-current="step".
When validation fails, move focus to the first invalid field or an error summary. After successful navigation, move focus to the new step’s heading or first meaningful control. Don’t leave it on a hidden button. Test Tab, Shift+Tab, Enter, and Space, and make sure hidden controls leave the keyboard sequence.
Use a screen reader to check that users hear the step name, progress, and errors. Link field errors with aria-describedby, and announce loading states without moving focus for every update. Check these same step changes on mobile in portrait and landscape, with zoomed text and the keyboard open. Sticky controls must not cover focused fields or error messages.
Click Next in quick succession, double-tap it, and press Enter repeatedly on a slow connection. Each test should produce just one request and one step change. Then interrupt the request or go back before it finishes. Answers should stay intact, stale responses should be ignored, and a working retry button should return.
5. Check Saved Answers and Drafts
Once step validation passes, check that saved answers stay accurate when users return. Enter easy-to-identify values, move through several steps, then go back and edit one answer. Check the stored value, not just whether the field looks filled. Test text, selections, checkboxes, formatted values, and upload status. Confirm that only the edited value changes, and record the expected and actual values.
Next, change a branching answer after visiting its dependent steps. The form should recalculate the path using current selections - not an outdated step index. Remove or clearly invalidate answers that no longer apply, and block stale data from submission. Recheck restored values after branch changes so old answers and errors don’t return.
If the form supports drafts, test recovery across sessions. Reload the page, close and reopen the browser, log out and back in, and resume from a draft link. Answers, the current step, progress, and errors should return together. Also try expired, revoked, deleted, and previously submitted drafts. Users should see a clear explanation and a safe next action. Enforce expiration on the server, rather than relying on deleting browser data.
Test conflicting edits and failed saves, too. Open the same draft in two tabs and save conflicting changes in both possible orders. Flag stale revisions instead of silently overwriting newer answers. Interrupt autosave, trigger a timeout, and make both an upload and a standard field save fail. Mark a draft as saved only after the server confirms the write, and clearly distinguish saves in progress from failed saves. Check that retries don’t duplicate drafts, users can tell what they need to re-enter, and screen readers announce save failures and recovery.
Inspect browser storage and any sensitive data restored with a draft. Don’t store passwords, payment card data, Social Security numbers, or tokens in client-side storage. Require authorization for server-side drafts, block access from other accounts, enforce retention limits, and clear cached state on logout, expiration, or deletion.
6. Check Error Messages and Accessibility
On the current step, show a clear inline error beside each failed field and explain how to fix it. Use wording that matches the visible label, and explain format requirements when needed. Give each message its own ID and connect it to the control with aria-describedby, keeping helpful instructions in place. Set aria-invalid="true" only after validation fails. Show visible error text - color alone isn’t enough. Make sure the message stays clear in forced colors and with CSS disabled.
If several fields fail on the same step, add an error summary at the top of that step. Name the affected fields using wording that matches the inline messages. Move focus to the summary, or to the first invalid field if there’s no summary. Each summary link must focus its field, not just scroll to it. If an error is on another step, reveal that step before focusing the control.
Test live announcements with a screen reader. Check whether focus changes and live regions cause messages to be read twice. After validation runs, remove resolved messages, clear their aria-invalid state, and update the summary. Keep unresolved errors visible.
Keep errors useful for users and safe for support teams. Hide stack traces, database messages, internal field names, authentication details, and clues about whether an account exists. Give users a way to retry or contact support, and log technical details securely.
7. Check Server Validation and Request Failures
Once you’ve checked client-side errors, test what the server accepts on its own. Verify server rules without relying on browser checks. Disable JavaScript and submit requests through devtools, an API client, or a proxy. Omit required fields, change hidden fields, and send invalid formats, out-of-range values, and conflicting step answers. The server is the final gate: it must reject invalid data and accept valid submissions.
Map each server rule to a stable field ID, step, error code, and status. Check that returned errors point to the right field and step without clearing valid answers. Test both the value’s format and whether that value is allowed for the submission.
Test server idempotency and downstream side effects. Double-click Submit, replay requests, and cut the connection after the save but before the response arrives. Then retry the same submission with the same idempotency key. Check the database, CRM, and confirmation emails: retries must not create duplicate records or repeat completion actions. Test failures after downstream calls, too - not just before saving.
Simulate expired sessions, invalid CSRF tokens, revoked authentication, insufficient permissions, network disconnections, and 408, 504, 429, and unexpected 4xx or 5xx responses. Keep the current step and any answers that are safe to retain. Require reauthentication before restoring protected data. For temporary failures, offer a controlled retry, respect Retry-After, and use limited backoff instead of retry loops. Don’t retry validation or authorization failures without changes.
When validation depends on external calls, test response order as well as content. For asynchronous email validation, change the input and start a new request before the earlier one returns. Ignore results linked to an outdated value or request ID. Test valid-to-invalid and invalid-to-valid changes, rapid edits, and timeouts. Show a pending state and block submission while required validation remains unresolved. Stale responses must never overwrite current answers or validation errors.
Conclusion: Record Results and Retest Each Path
Keep a results matrix for all seven areas: required fields, formats and limits, conditional rules, step transitions, saved answers, error messages and accessibility, and server responses. Track each failure until it’s fixed. For each entry, record the form version, timestamp (MM/DD/YYYY, h:mm a.m./p.m.), affected step or field, input state, expected and actual results, reproduction steps, browser/version, and device type.
Document failures without sensitive data. Include only sanitized status codes, error types, and request IDs or correlation IDs. Leave out passwords, payment details, access tokens, full request bodies, and personal values.
Fix the highest-impact failures first, then retest. Put blocked valid submissions, server-side acceptance of invalid data, and lost answers ahead of cosmetic issues. After each fix, retest the original failure, followed by nearby paths that the change could affect.
For published Reform forms, test configured rules, conditional routing, saved-state behavior, integrations, and server and webhook responses as form logic. Log the fix and retest result against the same form version. Close the issue only when all affected paths pass, and repeat these checks after rule or integration updates.
FAQs
When should I validate fields in a multi-step form?
Validate fields between steps and at final submission. When a user clicks Next or Continue, check the current step for errors. Also check required fields and formats when a field loses focus (on blur) or its value changes, so users get immediate feedback.
Run asynchronous API checks, such as checking whether an email is already in use or a user meets eligibility rules, when the user tries to leave the step. At final submission, validate all data on the server to check for errors and consistency across steps.
How can I automate multi-step form validation tests?
Treat your form as a state machine. Map each step’s visible fields, required constraints, and rules for moving between steps. Track field values, errors, and submission status. Simulate blur or change events to trigger validation.
Log step transitions and mock both successful and failed API responses. Check error messages and loading states, then verify that hidden fields clear when conditions change. Confirm that shared validation checks rules across steps and that invalid fields have the appropriate ARIA attributes.
How can I measure whether validation improves completion rates?
Track step completion rates, errors by field, abandonment after validation errors, API p95 latency, and validation error rates. A step completion drop of 20% or more against a 7-day baseline may point to validation friction.
Validation error rates above 10% over a 5-minute window may signal problems with validation logic. Compare these metrics with your baseline to check whether validation balances lead quality with user engagement.
Related Blog Posts
Get new content delivered straight to your inbox
The Response
Updates on the Reform platform, insights on optimizing conversion rates, and tips to craft forms that convert.
Drive real results with form optimizations
Tested across hundreds of experiments, our strategies deliver a 215% lift in qualified leads for B2B and SaaS companies.

.webp)


