Skip to main content

When I try to assign a user to a people picker by JavaScript, I get above error.


This error occurs only in IE 11 (11.1198.18362.0)


The code is working in IE 11 (11.1139.18362.0CO) as in all other Browsers.


 


NWF$(function () {
var user = 'john.doe@world.com';
var ctl = new NF.PeoplePickerApi('#' + timeOfficer);
if(ctl) {
ctl.search(user).done(function (data) {
ctl.add(dataa0]);
});
}
});

 


From ctl.add(datat0]) the code goes to the add funtion from the Nintex JavaScriptStringHandler


_layouts/15/NintexForms/JavaScriptStringHandler.ashx?resourceType=jsfile&fileName=NF.PeoplePickerHelper.js&culture=de-DE


 


9491iADBB79A1B18D8B24.png


getData will then return undefined and the error message will be logged to the console.


 


9492i392FA34FCDFB5034.png


 


So, it seems that something is not supported in the data extension of jquery, used by Nintex.


What I have seen so far, is that it has to do with the caching mechanism they use.


 


9493i9CFADBA192EBEF4B.png


here thisCachei"uiItempicker"] returns null, while the object can be found in other Browsers.


Does anybody knows how to workaround this issue.


 


Yes, and sorry, still a lot of users of my customer are using IE 11.


 


 


 

New finding: It seems some sort of timing issue, because it is also not working sometimes in all other browsers.

I wrapped my javaScript to:


 


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

and the problem is solved.


 


 


Reply