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

  • 27 March 2018
  • 2 replies
  • 82 views

Badge +1

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.


2 replies

Userlevel 6
Badge +16

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()});

});

Badge +1

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?

Reply