Set a People picker value using JavaScript

  • 5 December 2017
  • 1 reply
  • 42 views

Badge +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

Badge +4

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

Reply