Issue
Symptoms
Using the API call "g_form.addOption" in a lookup select box filters out duplicates
Release
All
Cause
This is implemented by design to address PRB620011, here is the code preventing duplicates:
Looks like we have deliberate duplicate checking in addOption:
var len = control.options.length;
+
+ // validate that duplicate choice label is not being added.
+ for (i = 0; i < len; i++) {
+ if (control.options[i].text == choiceLabel) {
+ return;
+ }
+ }
Resolution
Working as expected, and it cannot be change since this is within the source code itself