Forums

Fieldset in v.4

a11yguy 26 Oct, 2011
I have installed CF4 all is working. created First form.
I need to add Fieldset/legend for radio buttons and check boxes, to ensure accessibility to screenreaders.
I have searched the forums...only finding field set references for v. 3.1
Am I missing something?
Have fieldset/legend gone away?
is there a work around?
or do I just hand-code after using the wizard?

A11yguy (accessibility)
GreyHead 27 Oct, 2011
Hi a11yguy,

I don't think that they were ever in the CFv3 wizard. I think that's because they have a beginning and an end rather than just a single inserted element.

You can add them in the CFV4 wizard using Custom elements, one for the opening tags and a second for the closing tag.

Bob
a11yguy 07 Nov, 2011
Greyhead,
Thanks for the tip! Had to look around a bit to find the Custom Element (those right in front of you are the hardest to find😀)
in the first element
deleted the contents of the Field Name, Field ID,
changed the Label text to Begin Fieldset - so I can remember what it is
checked the Pure Code box
added the following code:
<fieldset>
<legend>Whatever is to appear on the screen</legend>


in the second element
deleted the contents of the Field Name, Field ID,
changed the Label text to Begin Fieldset - so I can remember what it is
checked the Pure Code box
added the following code:
</fieldset>


on screen looked fine. there is some css tweaking to do, the <legend> text looks like an H3, just need to tone it down a bit to look like the other labels.

a11yguy
This topic is locked and no more replies can be posted.