How does one build a select box with values and text?


#1

How does one build this with the select (bootstrap) control?

<select>
  <option value="12833">Volvo</option>
  <option value="88337">Saab</option>
  <option value="7372">Mercedes</option>
  <option value="9292">Audi</option>
</select>

The additem method only adds the item and does not offer a way to set the text property.

Easy enough to add items, and the examples reference a text property but does not show how to set it for each item to be added to the control dynamically (or manually) in the select control. I need to present text to the user but then the value returned to the program is the integer.


#2

There isn’t a good way to do this now. I notice this was possible with jQuery Mobile’s Select. We need to add this features to Bootstrap as well. Should be soon.


#3

The new feature was just released in AppStudio 7.2. Here’s more info:

https://blog.nsbasic.com/2019/01/enhancements-to-the-bootstrap-4-select-control/