WCAG problem with labels

MattLG 07 Aug, 2009
I've noticed that my ChronoForms forms do not comply with section 508/WCAG because the labels aren't assigned to any inputs. I'm not really sure what the point of an unassigned label is.

In my code I've changed the elements.php files so that all of the lines like:

<label class="cf_label"{cf_labeloptions}>{cf_labeltext}</label>

now read:

<label class="cf_label" for="{cf_id}"{cf_labeloptions}>{cf_labeltext}</label>

I also added:

for="chrono_verification"

to the label appropriate label in there too.

This is a very quick fix that makes the forms validate and it'd be great if this could be incorporated into the next version so that I don't have to keep repeating the changes each time I upgrade.

Many thanks

MattLG
Max_admin 07 Aug, 2009
Hi Matt,

Thank you for pointing to the issue and posting your fix, this will be fixed in the next versions!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.