cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Nintex Newbie

People Picker field validation

Jump to solution

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

Reply
8 Replies
Highlighted
Automation Master
Automation Master

Re: People Picker field validation

Jump to solution

converted discussion to question.

0 Kudos
Reply
Highlighted
Automation Master
Automation Master

Re: People Picker field validation

Jump to solution

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‌

View solution in original post

Reply
Highlighted
Automation Master
Automation Master

Re: People Picker field validation

Jump to solution

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

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: People Picker field validation

Jump to solution

Yes, Thank you, your formula was really helpful

Br

Marek

Reply
Highlighted
Automation Master
Automation Master

Re: People Picker field validation

Jump to solution

that's great.

please mark correct answer.

Reply
Highlighted
Nintex Newbie

Re: People Picker field validation

Jump to solution

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

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: People Picker field validation

Jump to solution

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

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: People Picker field validation

Jump to solution

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?

0 Kudos
Reply