Hi 🙂
Â
I've been trying to fix a bug for hours, but I just can't figure out what the problem is.
Â
I get the following error:
Â

Â
It refers to this codepart:
Â
function addOnChangeRequestor() {
NWF.FormFiller.Events.RegisterAfterReady(function () {
var ins1 = new NF.PeoplePickerApi("#" + varRequestor);
ins1.added(function () { onChangeRequestor() });
});
}
Â
Specifically to:
Â
ins1.added
Â
I made sure that varRequestor does exist in the Nintex Form.
The function above is used in the document ready function:
Â
NWF$(document).ready(function () {
NWF$(".cssHidden").hide();
if (isNewDoc) {
loadNewDoc();
loadRequestorsInfo();
addOnChangeRequestor();
} else {
loadExistingDoc();
addOnChangeRequestor();
}
NWF$("body").click(onClickForm);
});
Â
The exact code is also used on another application and it works fine there.
Â
I found another thread regarding this on here, but the answer doesn't work for me.
Â
How can one fix this bug? Any help is appreciated!
