• Resolved kontur

    (@kontur)


    I have a checkbox with two options defined like so:

    [checkbox use_label_element licensee exclusive "Person" "Company"]

    The resulting html for that part is:

    <span class="wpcf7-form-control wpcf7-checkbox wpcf7-exclusive-checkbox">
      <span class="wpcf7-list-item first">
        <input type="checkbox" name="use_label_element" value="Person">
        <span class="wpcf7-list-item-label">Person</span>
      </span>
      <span class="wpcf7-list-item last">
        <input type="checkbox" name="use_label_element" value="Company">
        <span class="wpcf7-list-item-label">Company</span>
      </span>
    </span>

    The documentation states:

    Wrap each checkbox and radio button with <label> tag.

    This seems to be a bug; I’d expect input elements to be wrapped by a label tag.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Checkbox use_label_element does not create any labels’ is closed to new replies.