Skip to main content
Level 2
Oct 4, 2022 10:09 PM UTC
Solved

Accessibility issue - Forms validation

Hi, 
Our accessibility team has highlighted an error they have seen on Marketo forms that we have added for the first time to our CMS (AEM):

"When we check for the screen reader text, all the highlighted text below would get read out. They are the error messages for the form fields and this would be confusing for the end user. They are usually meant to be hidden until form validation occurs on submit. I believe this will impact all the new Marketo forms. Can you aresolve this issue if possible?"

The issues they see are highlighted below. Is this anything I can change myself or is it something that needs updating on the Marketo end?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Oct 6, 2022 4:10 AM UTC

They're right. (You might expect me to argue based on precedent but nope!)

 

The only way to avoid this is to implement your own validation rules using the Forms 2.0 JS API (+ standard JS). Marketo’s validation includes setting aria-invalid on all fields.

 

 

 

 

2 replies

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Oct 6, 2022 4:10 AM UTC

They're right. (You might expect me to argue based on precedent but nope!)

 

The only way to avoid this is to implement your own validation rules using the Forms 2.0 JS API (+ standard JS). Marketo’s validation includes setting aria-invalid on all fields.

 

 

 

 

Translate
BenjincAuthor
Level 2
Oct 6, 2022 12:54 PM UTC

Thanks Sandford, I will pass this on to my team.

Translate