SOLVED

Re: Accessibility issue - Forms validation

Go to solution
Benjinc
Level 2

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?

Benjinc_0-1664920930208.png

 

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Accessibility issue - Forms validation

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.

 

 

 

 

View solution in original post

2 REPLIES 2
SanfordWhiteman
Level 10 - Community Moderator

Re: Accessibility issue - Forms validation

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.

 

 

 

 

Benjinc
Level 2

Re: Accessibility issue - Forms validation

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