Skip to main content
Nintex Community Menu Bar

People Picker field validation

  • May 10, 2017
  • 8 replies
  • 16 views

Forum|alt.badge.img+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

Forum|alt.badge.img+14
  • Scholar
  • May 10, 2017

converted discussion to question.


Forum|alt.badge.img+14
  • Scholar
  • May 10, 2017

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‌


Forum|alt.badge.img+14
  • Scholar
  • June 5, 2017

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


Forum|alt.badge.img+1

Yes, Thank you, your formula was really helpful

Br

Marek


Forum|alt.badge.img+14
  • Scholar
  • June 7, 2017

that's great.

please mark correct answer.


Forum|alt.badge.img
  • March 16, 2019

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


Forum|alt.badge.img
  • March 16, 2019

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


Forum|alt.badge.img+1
  • August 10, 2020

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?