I can’t find anything in the documentation about support for key-value pairs in a dropdown field. Is it possible to populate the Items list with a different key from the value displayed, or nope? Thanks.
Hi!
Please use the code from this topic: How can I update Dropdown Items dynamically with JS
You can also programmatically select the value of a dropdown field:
- By value: fd.field(‘DropDown0’).widget.value(2);
- By index (zero-based): fd.field(‘DropDown0’).widget.select(1);