In this lesson you
- Read which fields run a focus script, and what each does
- Tabbed through a form in Acrobat and named a field
- Attested a form whose fields show focus, removed a script that hid it, and knew when to flag instead
Transcript
Where am I on this form?
Focus visible. Someone using a keyboard presses Tab to move between form fields. How do they know where they are? The reader draws an outline around the field. WCAG 2.4.7, Focus visible, says that outline must be visible. On an ordinary field that outline always shows, so Proof passes the check by itself. A document lands here only when a field runs a script on focus, which can hide where you are.
What the list tells you
So the list shows only the scripted fields, each with what its script does. This one sets the border color. The other two fields have no focus scripts, so the reader's outline shows and they need no check.
Tabbing through the form
To judge, choose Download the PDF, and tab through it in Acrobat. As each listed field gets focus, can you still see where you are? Check in Acrobat. Some viewers ignore form scripts and draw their own outline, which can hide the problem. Pressing Tab on Proof's page keeps your place, in the same order. The list also shows what a screen reader announces. This one says Text1, which tells a listener nothing. Choose the pencil, then Use Applicant name. Then choose Save 1 name, so your record covers the file as saved.
Recording what you saw
Here, each field turned red on focus. So choose Focus visible on all 4 scripted fields, attest. One press covers the whole form.
When a field hides focus
The next form has a field whose script makes its border and background transparent. Tab to it, and nothing shows where you are. You can fix that here. On the field's row, choose Remove this field's focus script. Proof shows you the script first, because it may also format or check what is typed, and removing it drops that too. If you're sure, choose Remove the script. The reader's own outline then shows on that field. Nothing is written yet. The removal is staged, so choose Save 1 change. Proof writes it as a new version, and checks the form again. The three scripted fields left turn red on focus, so the form can be attested, as before. Choose the attest button.
When to flag instead
Removing a script isn't always right. If it also formats or checks what is typed, and you need to keep it, flag the field instead. Document-level JavaScript is never removed here, because it can reach every field. If it hides focus, flag it. Choose Flag issue, and say what you saw. The check fails until the document is fixed. Now you can tab through a form in a reader, and attest one whose scripted fields still show focus. You can remove a script that hides focus, and flag what you can't remove.
Recap
That's the end of the remediators track. Thanks for watching.
Maple Ridge Community Health, its documents and its people are fictional, made for these lessons.