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);