Hi Jason,
sorry but you have to change the code for that. This changes will be override with any Visforms update.
I think, at the moment, the easiest way would be to attach the label tags in the field definition in the visfield.xml in administrator/com_visforms/models/forms.
There is an xml-node
Code:
<fields name="defaultvalue">
and inside that a fieldset for each form field type supported by Visforms, with a name attribute which for example is visf_text, when the field type is text or visf_email when the field type is email.
Code:
<fieldset name="visf_text"
You can just add a new xml node inside each fieldset
Code:
<field name="f_text_attribute_label"
type="text"
label="COM_VISFORMS_INITIAL_VALUE"
description="COM_VISFORMS_INITIAL_VALUE_DESC"
class="inputbox" size="250" default=""
/>
You have to adapt the
name attribute according to the field type. So it would be f_
email_attribute_label for an
email field and so on.
Replace the language tags (like COM_VISFORMS_INITIAL_VALUE) in label and description attribute with texts that makes sense to you.
I would start with changing the xml definition of one Visforms field type first.
After you added the code above you should see a new input in the fields edit view for that field type in your Joomla! administration. Insert the label text you want to attach to the control there. It will be passed directly on to the field construction in the form and be added as label attribute using the value you inserted in the field edit view.
This should work for most field types. But I think it will not work for the items of selects and radios.
I have not tested it, but it is consistant with the way Visforms works and therefore should work.
Regards,
Aicha