Controlling checkbox labels in Formbuilder
Posted: Sat Jan 24, 2015 11:20 pm
I've been banging my head for hours trying to get label text side-by-side with form checkboxes using Formbuilder 0.8.1.1. In the default FB template, labels for non-multi-part form fields can be tweaked with no problem, but labels for checkboxes seem to be pre-defined with the piece
In order to get the label text directly next to the checkbox, I need to have the opening <label> tag before the <input> tag, and the closing </label> tag after the <input> tag.
The template outputs this:
And I need this:
Any help would alleviate the headache that has set in! For the record, here is my setup with no mods.
CMS Version 1.11.11
CMSMailer 5.2.2
FileManager 1.4.5
MenuManager 1.8.6
ModuleMgr. 1.5.8
News 2.14.4
Printing 1.1.2
Search 1.7.11
ThemeManager 1.1.8
TinyMCE 2.9.12
CGExtensions 1.31
jQuery 1.2.0
FormBuilder 0.8.1.1
Captcha 0.5.0
CGCalendar 1.10.0.1
youtubeplayer 1.3
CMSPrinting 1.0.5
MicroTiny 1.2.7
Current PHP Version (phpversion) 5.3.29
Server API (server_api) cgi-fcgi
Server Database (server_db_type) mysql (mysql)
Server Database Version (server_db_version) 5.1.39
Server Software (server_software) apache
Server Operating System (server_os) linux 3.1.9-vs2.3.2.5vs2.3.2.5+ on x86_64
My thanks-
JonR
Code: Select all
{$entry->input[numloop]->name}
The template outputs this:
Code: Select all
<input type="checkbox" class="cms_checkbox" name="cntnt01fbrp__74[]" value="1" id="fbrp__74_1_0" /><label for="fbrp__74_1_0">Sample text</label>
Code: Select all
<label for="fbrp__74_1_0"><input type="checkbox" class="cms_checkbox" name="cntnt01fbrp__74[]" value="1" id="fbrp__74_1_0" />Sample text</label>
CMS Version 1.11.11
CMSMailer 5.2.2
FileManager 1.4.5
MenuManager 1.8.6
ModuleMgr. 1.5.8
News 2.14.4
Printing 1.1.2
Search 1.7.11
ThemeManager 1.1.8
TinyMCE 2.9.12
CGExtensions 1.31
jQuery 1.2.0
FormBuilder 0.8.1.1
Captcha 0.5.0
CGCalendar 1.10.0.1
youtubeplayer 1.3
CMSPrinting 1.0.5
MicroTiny 1.2.7
Current PHP Version (phpversion) 5.3.29
Server API (server_api) cgi-fcgi
Server Database (server_db_type) mysql (mysql)
Server Database Version (server_db_version) 5.1.39
Server Software (server_software) apache
Server Operating System (server_os) linux 3.1.9-vs2.3.2.5vs2.3.2.5+ on x86_64
My thanks-
JonR