Accessibility
Each Form.io component is tested for accessibility compliance on standalone applications. To create accessibility compliant forms, we offer a form builder which includes only the components which were revised and designed in appliance with WCAG 2.1 standards.

Accessibility package includes:

  1. 1.
    Accessible Form Manager
  2. 2.
    Accessibility Templates (USWDS)
  3. 3.
    Accessibility Module (VPAT - (rename in the future))
    • Accessibility module github path: https://github.com/formio/vpat
      • Provides overrides for formio.js renderer and builder.
      • Cuts down options within the Form.io Portal Form Builder to avoid components for which accessibility is not supported.
      • Includes Builder markup overrides to make the builder accessible (keyboard accessibility, accessible drag-n-drop functionality, additional screen reader announcements upon user actions).
      • Handles dynamic changes on the form and during building a form.
When customers utilize BOTH USWDS + VPAT for embedded forms within their applications, they receive the following features:
Features coming from the Form.io USWDS templates (#2 above):
  1. 1.
    Proper HTML markup (every form field needs an associated label).
  2. 2.
    Aria-attributes such as aria-describedby, aria-labelledby, etc.
  3. 3.
    Additional messages for sighted users (e.g. allowed file types for File component).
Features coming from the Form.io VPAT module (#3 above):
  1. 1.
    Screen readers messages upon user action (File, Wizard components).
  2. 2.
    Focus behavior handling (File, Wizard, Panel components).
  3. 3.
    Dynamic change of aria-attributes (all form fields).
  4. 4.
    Validation messages handling (all form fields).
  5. 5.
    Special styles for invalid fields (all form fields).
Additional Features coming from using the combined Form.io USWDS+VPAT modules:
  1. 1.
    Accessible tooltips.
  2. 2.
    Accessible Date/Time component.
  3. 3.
    Ability to use accessible “Modal Edit” windows for components when being filled in by end users.

Accessible Form Manager

Repositories used:
  1. 1.
    https://github.com/formio/formmanager (also included in standard FMGR)
  2. 2.
    https://github.com/formio/angular (also included in standard FMGR)
  3. 3.
    https://github.com/formio/formio.js (also included in standard FMGR)
  4. 4.
    https://github.com/formio/uswds * (only included in Accessible FMGR)
  5. 5.
    https://github.com/formio/vpat * (only included in Accessible FMGR) * - this repositories have accessibility features listed above

How to enable the Accessible Form Manager Application:

To enable access to our Form Manager Application with the Accessibility module, please contact [email protected] and we will be happy to help get you started!
  1. 1.
    Within the Form.io Portal (i.e. portal.form.io) go to project settings.
  2. 2.
    Open Public Configuration.
  3. 3.
    Add new configuration key: “vpat” value: “true”.
  4. 4.
    Save project settings.
To open form manager click on the “Form Manager” button on the portal or go to https://yourproject.yoursite.com/manager.

How to Embed Accessible Forms that were built within the Accessible Form Manager Application into customer applications (with accessible templates and VPAT functionality included in the applications):

Repositories used:
To embed the “https://examples.form.io/example” directly to a website the following code should be used.
1
<html>
2
<head>
3
<meta charset="utf-8">
4
<link rel="stylesheet" href="https://cdn.form.io/formiojs/formio.full.min.css">
5
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uswds/2.12.0/css/uswds.min.css">
6
<link rel="stylesheet" href="dist/uswds.css">
7
<script src="https://cdn.form.io/formiojs/formio.full.min.js"></script>
8
<script src="dist/uswds.js"></script>
9
<script src="dist/vpat.js"></script>
10
</head>
11
<body>
12
<div id="formio"></div>
13
<script type="text/javascript">
14
Formio.use(uswds);
15
Formio.use(vpat);
16
Formio.createForm(document.getElementById('formio'), 'https://examples.form.io/example');
17
</script>
18
</body>
19
</html>
20
21
Copied!

Alternative Use Case: Embedding the Accessible Form Builder (commercial not OSS) directly within the customer application:

Repositories used:
Alternative way to use Accessible form builder is to embed the Form.io Form Builder within the application using the following code.
1
<html>
2
<head>
3
<meta charset="utf-8">
4
<link rel="stylesheet" href="https://cdn.form.io/formiojs/formio.full.min.css">
5
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uswds/2.12.0/css/uswds.min.css">
6
<link rel="stylesheet" href="dist/uswds.css">
7
<script src="https://cdn.form.io/formiojs/formio.full.min.js"></script>
8
<script src="dist/uswds.js"></script>
9
<script src="dist/vpat.js"></script>
10
</head>
11
<body>
12
<div id="builder"></div>
13
<script type="text/javascript">
14
Formio.use(uswds);
15
Formio.use(vpat);
16
Formio.builder(document.getElementById('builder'));
17
</script>
18
</body>
19
</html>
20
Copied!
Last modified 4mo ago