1

I am new to sharepoint and I am having trouble creating a versatile list. What I need is when an employee is entered into the people picker column I need their manager to autopopulate in another people picker column.

Can this be done? If not are there any workarounds? I ultimately need an email to be automatically sent to the persons manager when their name is entered into the sharepoint.

Any help would be much appreciated.

1
  • What version of SharePoint are you on?
    – Erin L
    Commented Apr 6, 2016 at 13:09

1 Answer 1

1

Using JQuery we can acheive this. Find the selected index or value from 1st People picker and With responsible to that pass the selected value to userName parameter.

Note: The Value must be the username.


function SetUserFieldValue(fieldName, userName) { var _PeoplePicker = $("div[title='" + fieldName + "']"); var _PeoplePickerTopId = _PeoplePicker.attr('id'); var _PeoplePickerEditer = $("input[title='" + fieldName + "']"); _PeoplePickerEditer.val(userName); var _PeoplePickerOject = SPClientPeoplePicker.SPClientPeoplePickerDict[_PeoplePickerTopId]; _PeoplePickerOject.AddUnresolvedUserFromEditor(true); }

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.