Issue Bug Closed

#82223ext:form missing id attribute on file input

Michael Kasten 08/28/17, 08:25 updated 10/02/18, 10:56

Description

If i create a form with an input type file, the input is missing the id attribute.

The label have the right for attribute, but the file input type just have the name attribute but no id attribute so the label will not have the correct reference:


<div class="form-group">
  <label class="control-label" for="punkteformular-fileupload-1">File upload</label>
  <div class="input">
    <input accept="application/pdf" name="tx_form_formframework[punkteformular][fileupload-1]" type="file">
  </div>
</div>

Reviews 2