Form Dropdown: Submit different data than what is displayed?
-
Hello, is it possible to make the selected dropdown option submit different data than the display choice? For example, we want to submit the woocommerce region codes, but have them in human readable format in the form dropdown:
State >>>>>>>> StateCode
Northland >>>>>> NL
Auckland >>>>>>> AK
Waikato >>>>>>>> WA
Bay of Plenty >> BPWe want to achieve the same result as you would with the HTML <option> value Attribute
<option value=”NL”>Northland</option>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Form Dropdown: Submit different data than what is displayed?’ is closed to new replies.