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

Form entries from "select" dropdown lists don't use the value property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Critical Critical
    • 2.15.0
    • 2.14.1
    • None
    • None
    • 4.6 M4

      Bug:
      Forms that have select dropdown lists result in incorrect entries. Instead of using the value, entries use the label
      Example:

      <select name="test-select" id="select_id" description="" placeholder="" mandatory="false" partofcost="false" width="100" multiple="false">
        <option value="number1" cost="    0">Choix affiché 1</option>
        <option value="number2" cost="0">Choix affiché 2</option>
        <option value="number3" cost="0">Choix affiché 3</option>
      </select> 

      In this case, if someone chooses "Choix affiché 1" from the dropdown list, the SQL entries table is filled with "Choix affiché 1" instead of "number1".

      Also, if someone changes the label "Choix affiché 1" to another string, it makes no difference to future form entries 

            lbouchet Loïc Bouchet
            jhawken James Hawken
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: