Skip to main content
Nintex Community Menu Bar

How to comapre two people picker controls?

  • April 22, 2016
  • 3 replies
  • 14 views

Forum|alt.badge.img+14

let's have two people picker controls on a form.

let first one to be populated manually by the user => people picker value does include claim string.

let second one to be populated by a javascript through NF.PeoplePickerApi functions search() + add() => people picker value doesn't includes claim string.

if I compare the two PPs containing the same user object their values do not match. it doesn't matter whether I try it with calculate control (or rules) or within javascript.

is there any native way how to do that?

I know I could do some string or regex manipulations to achieve match but I would prefer some kind of transparent way regardless of how PPs were populated.

3 replies

Forum|alt.badge.img+14
  • Author
  • Scholar
  • May 2, 2016

no hints?

could Nintex Support​ look on it and clarify whether it is intended or a bug?

thanks.


Forum|alt.badge.img+14
  • Author
  • Scholar
  • March 2, 2017

finally used userEquals() function for compare.

I do not like too much how does it perform the compare, but haven't found any better way.


Forum|alt.badge.img+14
  • Author
  • Scholar
  • March 2, 2017

I did report it to support, they recommended to use the function.

for time being it was acceptable solution for me, but  I was told (not by support) the way how function internally works could be risky in certain scenarios.