Skip to main content
Nintex Community Menu Bar

How to remove duplicates values from lookup field In nintex forms

  • Feb 5, 2018 10:31 AM UTC
  • 4 replies
  • 316 views
  • Translate All

Forum|alt.badge.img+5

Hello Team,

 

I want to remove duplicates values from lookup filed on nintex forms. I have tried for normal drop down control which contains duplicates in nintex forms. I am able to remove those duplicates values from drop down control.I have used below code for remove duplicates from drop down control.

 

NWF$(document).ready(function(){
NWF$("#"+txtsite).on('mousedown',function(){
var usednames=[];
$("select[id="+txtsite+"]>option").each(function(){
if(usednames[this.text]){
$(this).remove();
}
else{
usednames[this.text]=this.value;
}
});
});
});

 

Same code I tried for lookup filed but it's not working for lookup filed. If anyone have any idea about this query. Please help me out.

 

Thank you,

Santhosh.

4 replies

Forum|alt.badge.img+9
  • Nintex Employee
  • Mar 21, 2018 11:02 PM UTC

Hi Santhosh,

Just taking a stab at this, but it is probably because the ID prefix is associated with the lookup values. So no two values will be the same as their ID value will be unique. You can use Regex to remove the ID-Prefix, or even the parseLookup Runtime function.

Thank you,

Sean  

Translate

Forum|alt.badge.img+5

HI Sean,

That's what i was thinking.. Thanks for the suggestions.

Regards,

Santhosh.

Translate

Forum|alt.badge.img+5
  • Author
  • Mar 26, 2018 10:08 AM UTC

Hi,

No. I didn't get anything. I will post the solution, once i will get.

Thanks,

Santhosh.

Translate

Forum|alt.badge.img+3
did you get a solution ?
Translate