Set user in People picker control in SharePoint using JavaScript
$(document).ready(function() { var url = "/_api/web/GetUserById(" + _spPageContextInfo.userId + ")/"; var user = ""; getItems(url, function(Users) { user = Users.d.LoginName.split('|')[1]; if ($("select[title='Status'] option:selected").text() == "Received") { $("select[title='Status']").val('Pending'); window.setTimeout(function() { SetAndResolvePeoplePicker('Document Owner', user); }, 750); var d = new Date(); y = d.getFullYear(); m = d.getMonth() + 1; day = d.getDate(); $("input[title='...