People Picker field validation


Badge +1

Nintex Forms 2016

I need to create validation rule for PP field that will check is there more there one person

Is there any simple way to check it ?

Thank you in advance

Marek


8 replies

Userlevel 5
Badge +14

converted discussion to question.

Userlevel 5
Badge +14

to get number of entries in PP control use following formula

If(Array.isArray(PPControl),length(PPControl),If(length(PPControl)>0,1,0))

‌ number of items‌

Userlevel 5
Badge +14

Hi Marek Skalinski‌, were you able to resolve your issue?

Badge +1

Yes, Thank you, your formula was really helpful

Br

Marek

Userlevel 5
Badge +14

that's great.

please mark correct answer.

Badge

Dear @emha ,
Please help us understand a bit more.
where to input this? is PPControl a named people picker control or not ?

Please give us more information ..
I have the same question but I don't understand your solution.

Thanks for your help

Badge

I checked and found it's actually name of the PeoplePicker controll that we set.
Thanks @emha 

Badge +1

This worked perfectly in my test environment. I created a calculated field with the formula to return the number of entries in my people picker control and then created a validation rule for the people picker control to fire if the calculated field  is <> 1. Great.

But, when I tried to replicate in my production environment, the Customer Name (people picker) control disappears from the form and an error appears that 'object does not support property or method 'isArray''.

Any thoughts or suggestions?

Reply