I want my addElements to have a "label" field. Like a legit HTML good ol' <label> field. Is there anyway to do this in QuickForm? I tried rewriting the configuration of the template:
var $_elementTemplate =
"\n<p>
<label for=\"{label}\"><!-- BEGIN required --><span class=\"required\">*</span><!-- END required -->{label}</label>
<!-- BEGIN error --><span class=\"error\">{error}</span><!-- END error -->
{element}
</p>\n";
But now my 'static' elements are coming out like this:
<p>
<label for="<fieldset id="request"><legend>Areas of Interest</legend>"><fieldset id="request"><legend>Areas of Interest</legend></label>
</p>
I noticed the checkbox element gives you a label, but what about for 'text', 'select' or 'textAreas'? Thanks in advance.