Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-344

Problem with empty lines in Form dropdown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 2.21.0
    • 2.8.0
    • Back Inline editor
    • None

      In a form i have a field with a dropdown.

      The field is not mandatory and the dropdown has no placeholder but i have unwanted empty line(the first) in my dropdown, here is HTML code :

      <select id="Ametys_Gen_kel54coy645" name="select1" style="/* display: none; */">
      <option disabled="disabled" selected="selected"></option>
      <option>&nbsp;</option>
      <option value="valeur_1">BLEU</option>
      <option value="valeur_2">ROUGE</option>
      <option value="valeur_3">VERT</option>
      </select>
      
      
      

      See screenshot for preview

            Unassigned Unassigned
            dcartier David Cartier-Michaud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: