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

Retrieving "Person or Group" field to People Picker inside form

Jump to solution

Hi. I'm a beginner Nintex SharePoint developer. I am currently creating a functionality where user can select one of previous list items he created and copy its content (multiple coulmns) into new form. I can get every field copied into form, except Person to people picker field. Is there a way to achieve this? I tried this code, but it doesn't work. 

 

  NWF$('#' + authorPeoplePicker).val(listItem.get_item('Author'));

Also, I tried assigning the email or full name. No luck.

Labels: (1)
0 Kudos
Reply
2 Replies
Highlighted
Nintex Newbie

Re: Retrieving "Person or Group" field to People Picker inside form

Jump to solution

There is an API to work with the people picker control, see People Picker Extensions - Nintex Forms

View solution in original post

Reply
Highlighted
Nintex Newbie

Re: Retrieving "Person or Group" field to People Picker inside form

Jump to solution

Thanks. I was able to populate People Picker using this code:

NWF.FormFiller.Events.RegisterAfterReady(function () {
     var supervisorPeoplePicker = new NF.PeoplePickerApi('#' + varSupervisor);
     supervisorPeoplePicker.clear();
     supervisorEmail = listItem.get_item('Supervisor').get_email();
     supervisorPeoplePicker.search(supervisorEmail).done(function (data) {
     supervisorPeoplePicker.add(data[0]);
                });
Reply