cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Set a People picker value using JavaScript

Hi there,

I have a people picker filed on my form, it's ClientID is:ciMyPeople.  I want to fill it with different values based on another field, here is what I'm doing using JavaScript:

switch(con){

case 'Canada':

NWF$('#' + ciMyPeople).val('canada@mycompany.com');

break;

case 'US':

NWF$('#' + ciMyPeople).val('us@mycompany.com');

break;

}

the above code doesn't do anything.

Does anybody can help me please?

Thanks

Labels: (2)
0 Kudos
Reply
1 Reply
Workflow Hero

Re: Set a People picker value using JavaScript

Hi,

Can you please look at below references and see if it helps. If it doesn't, can you please export your form and send me by email?

https://nintex.jiveon.com/community/dev-talk/blog/2017/02/05/populate-people-picker-with-user-line-m...

https://nintex.jiveon.com/docs/DOC-1222

Regards

Shirin

0 Kudos
Accept as Solution Reply