Questions tagged [clientpeoplepicker]
The ClientPeoplePicker is the new ASP.NET control for the purposes of selecting users or groups in the SharePoint framework, made available starting from SharePoint 2013 . This tag should not be used for questions regarding the usage of the old - pre SharePoint 2013 - people picker.
39 questions
0 votes
1 answer
10 views
Client People Picker overflowing when setting user through API. How to get it to resize correctly?
I have some client people pickers, and I'm setting their values through the API by calling picker.AddUnresolvedUser({ 'Key': user.UserName }, true); However, the result is that the visible user ...
0 votes
1 answer
63 views
Is there a way to truly limit a (client) people picker to allow only one entry?
Even if I SPClientPeoplePicker_InitStandaloneControlWrapper with a schema that includes schema['AllowMultipleValues'] = false In the actual control itself, if you enter a name, it then moves the &...
0 votes
1 answer
1k views
Submit People Picker value into Sharepoint list column(Person and group) in SPFX (No Javascript) framework
Using SPClientPeoplePicker in the form Is there any way to submit value from PeoplePicker into Sharepoint List Column(Person and group) I am getting an error , using this piece of code for ...
0 votes
1 answer
123 views
What is the minimum permission needed for the client side people picker to work for a user
I have implemented client side people in SharePoint 2019 site in a custom form using plain HTML and jQuery. Requirement is to give user enough permission to use people picker but restrict from add/...
0 votes
1 answer
904 views
Client Side People Picker with SharePoint Group
I have come across the client side people picker javascript. Right now the people picker accepts all users. Is there any way we can point it to a SharePoint Group. I only want users that are present ...
1 vote
0 answers
132 views
Client Peoplepicker not saving data to a list
we are using Client peoplepicker in our SP custom form. Below is the code for that. function getUserInfo(peoplePickerElementId) { try{ var toSpanKey = ...
2 votes
1 answer
1k views
SPClientPeoplePicker is not defined in custom edit form
I am getting the error "SPClientPeoplePicker is not defined in custom edit form". But it is working properly in default edit/new item form. (Sharepoint Online) Getting the below error when trying to ...
1 vote
0 answers
67 views
Custom validation for people editor control
How to add custom validation for in asp.net if the user adds more than one username an error message must appear that he can only add one user. Thanks Regard.
1 vote
1 answer
2k views
SharePoint People Picker Groups Only
I want to filter a people picker in SharePoint by Groups only (out of the box only has People and Groups or People Only) How can I achieve this please? I have this page actually not the actual ...
1 vote
1 answer
368 views
How to use class instead of Id for SharePoint PeoplePicker using JavaScript
I have created a Form on SharePoint using SPD, where I have used SharePoint PeoplePicker to get the User automatically. Below is the code:- $(document).ready(function () { // Specify ...
1 vote
0 answers
179 views
Cannot clear people picker through Javascript
I've generated a people picker and I'm trying to clear it when i reset the form but it keeps giving me this error: clear: pickerId => { var picker = ...
1 vote
0 answers
49 views
How to clear picker before populating new item
I've created a people picker control in my form. I want it to only allow 1 user to be entered at a time. So if there's 1 user already selected, clear that picker, then resole the added user. On my ...
0 votes
0 answers
86 views
SharePoint Online permissions required to run a jquery script that removes resolved user on edit form
I have a jquery script placed on a list edit form that removes resolved user from a people picker field. But the problem I am having is, it works for certain users and it doesn't for others. I tried ...
0 votes
1 answer
447 views
Auto-Populate Email Column using PeoplePicker once username is chosen in SharePoint
New to SharePoint Online: Goal: - Have the user enter a name in the input box (senderName), using the PeoplePicker, username populates... Once the username is selected, email of user populates in ...
0 votes
2 answers
4k views
Clear value PeoplePicker in JavaScript (JQuery)?
Please tell me how to clear the value PeoplePicker in JavaScript (JQuery)? Tried a lot of examples, nothing works. $("input[id*='Author']").val(''); $("div[id*='Author']").attr('description',''); $("...