• Resolved imjinoh

    (@imjinoh)


    Hello,

    I like to know what is “value” field is used for at “Select” form.

    Whatever I do, it does not seem to change anything.

    Thank you.

Viewing 1 replies (of 1 total)
  • For a select dropdown in HTML code, there we can have two values for each option
    Below is select syntax

    <select name="cars" id="cars">
      <option value="volvo">Volvo</option>
      <option value="saab">Saab</option>
      <option value="mercedes">Mercedes</option>
      <option value="audi">Audi</option>
    </select>

    One is the option label, the visible part, and a value field that will not be visible, which will be accessible on the server end once the user submits the form

    In our plugin as well, we provide the option to set both label and value. There is no real difference in this case here unless you want to do some custom coding.

    If you don’t have any special needs, you can set the same value for both fields.

Viewing 1 replies (of 1 total)
  • The topic ‘What is “Value” field for at select form’ is closed to new replies.