hi,
how can we extend the Sharepoint 2013 People picker to auto suggest results from the people picker to show name , and phone number or other ad properties?
thanks
Technology Tips and News
hi,
how can we extend the Sharepoint 2013 People picker to auto suggest results from the people picker to show name , and phone number or other ad properties?
thanks
Hi,
As I understand, you want to extend the people picker to auto suggest results to show other properties in SharePoint 2013.
You could achieve it programmatically. You could use the following code snippet to show auto suggest box by JavaScript. And you could use the client side people picker in sharepoint-hosted apps.
var peoplePicker = this.SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerDiv_TopSpan; peoplePicker.AddUserKeys(loginIdOrEmailOrSearchText, false); //true shows the auto-suggest box, false resolve the user
For more detailed information, you could refer to the articles below.
The article below is about SharePoint 2013: Client Side People Picker.
http://ranaictiu-technicalblog.blogspot.com/2014/11/sharepoint-2013-client-side-people.html
The article below is about Use the client-side People Picker control in SharePoint-hosted apps.
https://msdn.microsoft.com/en-us/library/office/jj713593(v=office.15).aspx
Best regards,
Sara Fan