Search Titan CMS

Skip to Content
Main Content

Form Accessibility Edits in the Source Code

In certain cases, you will want to go into the source code to update the form and make it more accessible for screen reader users. Common reasons for this would be if you have instructions for the form, required fields, or multiple choice options like checkboxes and radio buttons that need descriptions for the group of options.

  1. After adding the necessary inputs using the methods above, hit the Source button in the upper left corner of the Form Editor. Sample form
  2. The source code for the above form would look like: source code for a form
  3. If you have instructions for the form as a whole that the user should understand before beginning, add a <fieldset> element around the entirety of the instructions and the inputs you created . Insert “<fieldset>” at the start of the form content, the editor should automatically create a closing </fieldset> tag which you will need to move to the end of the content you would like to wrap. What this does is mark the whole form as one associated collection. Highlighted fieldset in the source code

 

  1. You can nest fieldset elements, and should do so if you have multiple choice options in your form. See the instructions for multiple choice fields to learn more.
  2. If you have any instructions for your form, you will want them to be visible and read by assistive technology as a legend. Put <legend></legend> around the start and end of the instruction text. All instructions and examples should come before they are needed in the form, not as further instructions below or after a field. Legend highlighted in the source code
  3. If any of your fields are required, you will want to add in required="required" Required highlighted in the source code
  4. Additonally, all required fields need descriptive error messages. Error messages must be descriptive of the field in question, e.g. “First Name is required” instead of “this field is required.” Error messages are entered in the Error Message field of Titan Forms. Error Message field
  5. A note about source edits: When you enter labels directly in the source code, they do not always appear in the Titan Forms Editor. They do appear on the site, and function correctly. However, especially for fields other than text boxes and fields that contain a paragraph break, the Forms Editor does not always pull that in to populate the label field on the WYSIWYG side of the editor in Titan.

Get Support

Expert Titan CMS Support is just a phone call or email away! 

Titan CMS Help Desk

9a.m.-5p.m. CT Mon-Fri
Tel: 414-914-9200
Email: support@nwsdigital.com

Get Support