Test PDF form validation by deliberately leaving required fields empty, entering invalid values, and correcting the resulting errors with a keyboard. A form that works only when every answer is perfect has not been adequately reviewed. Readers need to know what is required, understand what went wrong, locate the relevant control, and continue without losing valid information.
Define the completion contract before writing rules
Use a fictional event registration form with a name, email address, session choice, and optional access requirements. Document which fields are necessary and why. Avoid making a field required merely because it exists in a template. State any format expectation next to the relevant control, and make the instructions understandable without relying on color or an unexplained symbol.
Separate collection from delivery. A PDF may be saved and uploaded elsewhere, emailed through an approved process, printed, or submitted through a supported action. State the intended route and test it. A button labeled 'Submit' is misleading if the expected viewer cannot perform its action or if the user receives no useful indication of the outcome.
Check required state and accessible names
W3C technique PDF5 explains identifying required controls in PDF forms and the underlying field flags used by authoring tools. A visible asterisk alone does not demonstrate that the required state is exposed appropriately. Review the visible instruction and the programmatic field properties together.
W3C technique PDF12 distinguishes the accessible name from an editor's internal field name. In Acrobat's documented text-field workflow, the Tooltip value supplies the accessible name through TU; the internal T name is a different property. Inspect what the reader actually hears rather than judging a field by its convenient developer identifier.
For the event example, 'Email address, required' is useful context, while 'Text3' is not. Keep the accessible name consistent with the visible label. Test radio groups and checkboxes separately, including whether the user can identify the choice and its current state. Do not assume that a readable text field proves every control type is usable.
Make errors specific and correctable
W3C technique PDF22 addresses input outside a required format or value and describes textual error notification. The reader should be able to identify the error and correct it. Focus movement needs care: after an alert, the next keyboard action should be understandable rather than unexpectedly moving to an unrelated part of the form.
| Test input | Useful feedback | Recovery to check |
|---|---|---|
| Required name left empty | Identify the missing name field | Reach the field and enter a value without losing other answers |
| Email missing an expected component | Explain the accepted email format | Edit the existing value rather than starting the form again |
| No session selected | Explain that a session choice is required | Navigate the choices and confirm the selected state |
| Optional field left empty | No blocking error solely for being empty | Continue through the intended completion route |
Validate only constraints the process genuinely needs. Overly narrow rules can reject legitimate names or addresses. Keep examples illustrative rather than turning them into the only accepted values. Where validation occurs in another system after upload, distinguish that later response from the PDF's own checks and review the full correction journey.
Test the difficult states in the intended viewer
- Complete the form using a keyboard, checking labels, states, instructions, and focus order.
- Trigger each required and format rule separately, then try more than one error together.
- Read the error, return to the relevant control, correct it, and retry the completion action.
- Save and reopen the form through the supported workflow to check the values that should persist.
- Repeat the essential tasks in each supported viewer and record unsupported scripting or submission behavior.
Use synthetic details in tests and a controlled destination for submissions. Do not send test applications into a live processing queue. Record viewer and assistive-technology versions, the exact PDF revision, and the expected outcome of each case. A visual red border is not sufficient evidence that an error was announced or that recovery worked.
Provide a usable route when the PDF cannot support the task
If a necessary interaction is unreliable in the distribution environment, evaluate an accessible web form or another supported completion route. Explain the option before a reader invests time filling the PDF. Keep the data requirements and instructions consistent across routes, and test the alternative rather than assuming that changing format resolves every issue.
Use the AcroForm and XFA guide to understand format differences, the screen-reader guide for repeatable review, and the embedded-viewer guide when the form appears inside a web page.
Frequently asked questions
Is a red border enough to identify an invalid field?
A visual border alone does not establish that the error is available to every reader. Provide understandable textual feedback, identify the affected control, and test whether the user can reach and correct it with the intended assistive setup.
Is the internal PDF field name its screen-reader label?
An editor's internal field identifier can differ from the accessible name. Inspect the relevant field properties and actual announcements; W3C's PDF12 technique explains the distinction for common Acrobat form controls.
Should PDF form testing include browser viewers?
Test the environments your publication supports, including browser viewers when readers are expected to use them. Document feature limitations and provide a tested completion route when scripting, saving, or submission does not behave as required.
Sources
The statements above rest on the primary sources below. Where a source is a law or standard, the version and date named in the text are the ones checked on the review date. This guide is general information, not legal advice.
- W3C PDF5: Required form controls
- W3C PDF12: Name, role, and value
- W3C PDF22: Input format and value errors
Keep reading
Accessible PDF forms: AcroForm vs XFA and WCAG
Why XFA forms fail accessibility and archiving, how AcroForm fields get an accessible name through tooltips, the WCAG PDF techniques for forms, and when an HTML form is the better answer.
Read the guide →How to test a PDF with a screen reader
A repeatable screen reader test for PDFs with NVDA, JAWS, or VoiceOver: which viewer to open the file in, the keystrokes to use, what to listen for, and independent data on which viewers expose tags.
Read the guide →Embedded PDF accessibility: keyboard and focus
Test the page, embedded viewer, and PDF together, including frame labels, keyboard entry and exit, visible focus, mobile use, and direct access.
Read the guide →