Forms Accessibility in Adobe Acrobat: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
Line 7: Line 7:
* Current Document
* Current Document


==== TODO ====
==== How Acrobat locates form fields based on content ====


Document what content cues influence how the form fields are added to the document.
TODO: Document what content cues influence how the form fields are added to the document.


* For example, text followed by a straight line will cause a textbox to be added to the form.
* For example, text followed by a straight line will cause a textbox to be added to the form.

Revision as of 17:14, 9 January 2015

Creating and editing forms

Adding form fields to a document that has none

Tools pane > Forms > Create

  • From Existing Document
  • Current Document

How Acrobat locates form fields based on content

TODO: Document what content cues influence how the form fields are added to the document.

  • For example, text followed by a straight line will cause a textbox to be added to the form.
  • An rectangular outline will cause a multi-line textbox to be added, but a blank area will be passed over.

Textbox options

Multi-line (textarea)

  • with field selected > Properties (Ctrl+I) > Options tag > Multi-line: checked

Comb

The Comb setting splits the textbox into evenly spaced boxes, allowing only one character to be entered in each box.

  • with field selected > Properties (Ctrl+I) > Options tag
    • Deselect all other options (otherwise Comb won't be available).
    • Comb of number of characters to allow in the textbox.

Checkbox options

Checkbox appearance

Checkboxes seem to constructed with a border, padding inside the border, and a fill area.

When the checkbox is selected, there is always padding between the border and the box used to indicate that the checkbox has been selected.

The style of the check mark can be controlled with Properties' > Appearance tab > Text > Font Size, which will control the size of the box displayed when the checkbox is selected, and Properties > Appearance tab > Text > Text Color which will control the color of that box.

Checkbox groups

It doesn't appear possible to group checkbox form fields together. If they have the same Name they will be have like radio buttons, i.e. only one option out of all options with the same name can be selected at one time.

Radio buttons

To create a group of radio buttons give the radio buttons the same Name, with unique Export Values.

Note that radio buttons can be round or square (the appearance of checkboxes) but it's the Name value that determines if they act like radio buttons, i.e. only one option in a group can be selected at a time.

  • Tools pane > Forms > Edit Fields > Fields > select a field
  • right click > Properties (Ctrl+I)
    • field name: General tab > Name
      Note that form fields that share a Name will all have the same Tooltip value, i.e. when the tooltip value is changed for one of the options, it will update the tooltip value for all the other options.
    • export value: Options tab > Export Value
  • Both the Tooltip and Export Value are read out for checkboxes in a group. Best to make the tooltip as concise as possible if it will be read out multiple times.

Clearing form values

If a PDF is saved with input in textboxes, or with checkboxes or radio buttons selected, those values will persist the next time it's opened in Acrobat Reader.

To clear form values (radio buttons can't be cleared with clicking once they are selected), Tools pane > Forms > More Form Options > Clear Form.

Form field tab order

Form field tab order must match the flow of the document: left to right, then top to bottom, with the exception of columns where it makes more sense to go from the top to the bottom of the leftmost column, then return to the top of the next column to the right.

  • Tools pane > Forms > Edit > Fields tab
    • Drag form fields to the appropriate place in the list.
    • Note that changing the position of a field in the list will remove its tag from from the tags tree. After a field's tab position is changed, re-tag it with tags pane > options menu > Find.... (See Untagged annotations)
  • Document tab order
    • When the Accessibility Check is run after the field tab order has been changed, an error will be thrown under Accessibility Checker > Page Content > Tab Order
    • Expand the node, right click on the error message and select Fix.

Form field alternate text

Each form field must have alternate text that accurately describes the data to be collected by the field.

  • Tools pane > Forms > Edit
  • Form fields can be selected either in the document content area, or under the Fields tab.
  • With a field selected: right click > Properties (Ctrl+i)
    • Name is the label of the field. If a tooltip value is provided, this can be a code containing abbreviations, underscores and/or numbers that wouldn't necessarily make sense if it were read out loud. The Name field can contain spaces and special characters.
    • Tooltip, if provided, is the text that is read out loud for the form field. As such the tooltip value should be easily understood. If a tooltip value is not provided, a screen reader would typically fall back on the Name value.

Tagging form fields

Form fields must be represented by tagged annotations in the tags tree

tagged annotation
  • tags pane > options menu > Find...
    • Find: Unmarked Annotations
    • Search Page or Search Document
  • For each unmarked annotation that is located, click the Tag Element button.

Form field nodes must be enclosed in `<Form> tags

<Form> tags
  • Select a sibling node for the <Form> tag.
  • tags pane > options menu > New Tag
    • Type: Form
  • Drag the tagged annotation into the new <Form>` tag.

Reference