I have one SharePoint list in which there are two fields:
- User (People or Group)
- Work Phone (Single Line of Text)
On default NewItem form
of this list, When we add User in User
field then that user's Work Phone should be automatically comes in Work Phone input text on change of User field.
How to achieve this using JSLink
?
How to call onchange
event on list's default people or group field and get the user details at onchange
? I have tried to get user on people or group change with following code:
// it does not calling on auto complete
$(".sp-peoplepicker-topLevel input").change(function () {
console.log("Onchange event");
});
Change event was called but on selecting user (on autocomplete), this event does not calling.