Skip to main content
Nintex Community Menu Bar

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

  • March 27, 2018
  • 2 replies
  • 139 views

Forum|alt.badge.img+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

Forum|alt.badge.img+16
  • March 27, 2018

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

});


Forum|alt.badge.img+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?