CMS MADE SIMPLE FORGE

CGBetterForms

 

[#11751] Select labels include options

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Wed Feb 21 15:35:50 -0500 2018

Assigned To:
Version: 1.3.3
CMSMS Version: 2.2.5
Severity: None
Resolution: None
State: Open
Summary:
Select labels include options
Detailed Description:
If you use labels as wrappers instead of "for" (which is a valid way to do it),
CFBF picks up the options text as part of the label name.

example:

    <label>Do you like squirrels?
      <select name="likesquirrels">
        <option value="yes">Yes</option>
        <option value="no">No</option>
      </select> 
    </label>

will result in the field label in CFBF being "Do you like squirrels? YesNo"

data-cgbf-label doesn't seem to affect form elements which aren't inputs, but if
it did that would be a suitable workaround.


History