DataBridge 2: change label structure for the forms
DataBridge create this code for the labels in the forms:
<label class="checklabel" for="name"><input type="checkbox" name="name" id="name" value="1" class="formCheckboxField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("insert","name"):""),"1"))) {echo "checked=\"checked\"";} ?> tabindex="3" title="Please enter a value."> Test</label>
The input tag is inside of the label and this behaviour could create conflict in a lot of situation.
For example if I use this css solution for displaying custom bootstrap style checkboxes and radio buttons, I need to move label out otherwise not works:
https://github.com/bantikyan/icheck-bootstrap
So, the correct code should be:
<input type="checkbox" name="name" id="name" value="1" class="formCheckboxField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("insert","name"):""),"1"))) {echo "checked=\"checked\"";} ?> tabindex="3" title="Please enter a value.">
<label class="checklabel" for="name"> Test</label>