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

Javascript event fired when a user is added to people picker control in Nintex form on cloud?

I want to handle the JavaScript event which is fired when a user is added to people picker control. onchange event does not work for people picker.

Labels: (1)
Tags (1)
Reply
2 Replies
Workflow Hero

Re: Javascript event fired when a user is added to people picker control in Nintex form on cloud?

Try this:

frmCurrMentor = variable used for JavaScript on the form

nameMentor = JavaScript name for the list item

MentorValueChanged() = name of the function I want executed when the change event occurs

 

NWF.FormFiller.Events.RegisterAfterReady(function() {

     frmCurrMentor = new NF.PeoplePickerApi("#"+nameMentor);

     frmCurrMentor.added(function(){MentorValueChanged()});

});

0 Kudos
Accept as Solution Reply
Workflow Hero

Re: Javascript event fired when a user is added to people picker control in Nintex form on cloud?

Thanks.

I tried but it throws an error on load and does not call the function MentorValueChanged()

NF.PeoplePickerApi is not a constructor

Do I have to add any reference to any Js for the same?

0 Kudos
Accept as Solution Reply