How to comapre two people picker controls?

  • 22 April 2016
  • 3 replies
  • 0 views

Userlevel 5
Badge +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

Userlevel 5
Badge +14

no hints?

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

thanks.

Userlevel 5
Badge +14

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.

Userlevel 5
Badge +14

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.

Reply