0

I have an item in SharePoint List with type data people picker.

Approver 1 edits an item ,puts Assign To on people picker, and then click save button. Next Approver 2 edits the same item and then put Assign To on people picker, can previous value in people picker be erased?

1 Answer 1

0

You can use this

$(document).ready(function() {
peoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[$('[Title*="Test"]')[0].id];
    if (peoplePicker.TotalUserCount > 0) {
        peoplePicker.DeleteProcessedUser();
    }
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.