Margo
(Margo)
24
@r_pat,
The value.Key
is not defined and that breaks the code.
If you need to get the province of the user selected in the Person or Group field, the code should be like that:
fd.spRendered(function () {
//Employee Balances and name check
compareNameToCurrentUser();
fd.fied('PeoplePicker').$on('change', function(value) {
getUserProvince(value.Key);
});
});
Please also see Nikita's post on how to debug custom code: