Skip to main content
Nintex Community Menu Bar

Set a People picker value using JavaScript

  • December 5, 2017
  • 1 reply
  • 57 views

Forum|alt.badge.img+5

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

1 reply

Forum|alt.badge.img+4
  • Nintex Employee
  • December 5, 2017

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-manager

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

Regards

Shirin