On a Nintex Workflow start form, using a list lookup control with a filter often results in duplicate values being displayed.
May I propose a small addition to NF.BaseDataAcessHelper.js in the updateControl function.
// added at NintexForms\NF.BaseDataAcessHelper.js line 625 of v4.6.6
if(items.split(';').length > 1){
var arr = items.split(';')
const hashTable = {};
const result = [];
for (let i = 0; i < arr.length/2; i+=2) {
if (!hashTable[arr[i+1]]) {
hashTable[arr[i+1]] = true;
result.push(arr[i],arr[i+1]);
}
}
items = result.join(';');
}
Oops, Corrected!