Skip to main content
Nintex Community Menu Bar

Hi,

 

I am new to Nintex forms O365 through classic designer. I have to populate user email id in a People picker column on button click. I am getting the user email id from a list. But I am not able to populate and resolve the user email to a People picker column on button click. I even tried with PickerApi as below.
var PersonControl = new NF.PeoplePickerApi("#"+pplControl);

But it is throwing the error as "Uncaught TypeError: NF.PickerApi is not a constructor".

 

Can you please help me how to populate and resolve the user by email id on button click through JavaScript code. 

 

Thanks,
Kishore.

In you JS try this : 

 

var controlPeoplePicker = NWF$('#' + myPeoplePicker); var userAsPickerEntity = { "email": "userEmail@email.com", "id": "userId / User Lookup ID", /*not sure this is needed*/ "label": "User display name", "title": "", "type": "User", "value": "userEmail@email.com" }; controlPeoplePicker.data('uiItempicker')._addItem(userAsPickerEntity);