How can I set option labels and values independently in a dropdown field?

  • macallistermachinery
    Asked on September 30, 2020 at 12:30 PM

    I have a form that lists store locations in a dropdown field. The option label seen by the user needs to be the name of the store, but the submitted value needs to be the store number.

    How can I set the option labels and values independently of each other?

    From this:

    <option value="IN - Bloomington RS"> IN - Bloomington RS </option>

    to this:

    <option value="123"> IN - Bloomington RS </option>
    Jotform Thread 2607265 Screenshot
  • David JotForm Support Manager
    Replied on September 30, 2020 at 5:43 PM

    Good day, you can assign values to each dropdown option as shown on this guide: https://www.jotform.com/help/301-How-to-Assign-Calculation-Value

    Then, you can grab that value with a Form Calculation widget, example:

    1601502166 5f74fbd60bc75 storename Screenshot 10

    Let us know if you need more help.

  • macallistermachinery
    Replied on September 30, 2020 at 8:19 PM

    Seems like a roundabout way to do this, but it works. Thank you very much for the reply and especially for the video!