Developer forum

Forum » Templates » Separate content and presentation, wcag.

Separate content and presentation, wcag.

Siv Hansen
Siv Hansen
Reply

I tested the "form for editors" module, ref https://egwbp-sivha.azurewebsites.net/Default.aspx?ID=4

When displaying the source code of the newly published form, I see that it is wrapped in tables. In the universal design guidelines, one requirement is that tables are used for tabular data, which form content is not.

Is this a configuration error in my end or a bug in yours?

Best wishes.


Replies

 
Nicolai Pedersen
Reply

It is neither.

We do not code by the definitions of WCAG, never have, never will.

Forms are template based and you are more than welcome to write your own template that does not use tables.

Also I do not agree that tables are not allowed for forms - the requirements says nothing about that, and it really depends on the form. It says something about labels, fieldsets, legends, titles and a lot about how to build and write content around a form. The forms module also does not support grouping fields (a WGAC requirement) and other minor things.

But I am sure that you can accomplish WGAC/WAI compatibility with a custom template.

BR Nicolai

 
Siv Hansen
Siv Hansen
Reply

WCAG says that tables should be used for tabular data.

When I look in my template folder I find a default.cshtml, that loops through form elements and puts them in divs. No other form templates around. How do I choose this one, instead of the one with the tables? I haven't found any place where I can choose a different form template.

 

Kind regards.

 
Nicolai Pedersen
Reply

Hi Siv

You set that up using the paragraph settings of the form - instead of choosing "Automatic" choose "Template":

https://doc.dynamicweb.com/documentation-9/content/apps/forms-for-editors#sideNavTitle1-2

BR Nicolai

 

You must be logged in to post in the forum