• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: labels for fields

labels for fields 11 years 4 months ago #25836

Hi RSForms,

I have a need to have labels for fields included in the code output from RSforms to comply with WCAG 2.0AA

Is this possible to implement as i cannot see a way of doing this i the program?

Regards
Tony
The administrator has disabled public write access.

labels for fields 10 years 10 months ago #27983

Hi Tony,

I did it by adding a FreeText field and including labels for all the fields in there. Then hide the field in whatever way suits best (there are probably better ways than this, but for the moment, I've been shoving them 10000 px off). Screen readers seem to ignore the normal captions but will read out these labels in the right context wherever they appear (or not) on the page.

So, something like:

<label style="text-indent:-10000px;" for="myField">My Field</label>
<label style="text-indent:-10000px;" for="myOtherField">My Other Field</label>

Only need one FreeText field, as you can put multiple labels in it.

This way you can avoid changing the generated HTML layout (otherwise you'll need to change that each time you change the form).

Hope this helps

D.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!