C# How to clear <SharePoint:ClientPeoplePicker>
-
15-01-2021 - |
문제
Please tell me how to clear the value "ClientPeoplePicker" in C#?
<SharePoint:ClientPeoplePicker runat="server" ID="PeoplePickerControlName" Required="true" ValidationEnabled="true" InitialHelpText="text" VisibleSuggestions="3" Rows="1" AllowMultipleEntities="false" CssClass="ms-long ms-spellcheck-true" />
해결책
Please try this
PeoplePickerControlName.AllEntities.Clear();
Link about this: https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.webcontrols.clientpeoplepicker.allentities.aspx
다른 팁
Clear on the new form?
$('[id^=ClientPeoplePicker]').val('');
Maybe something like that?
제휴하지 않습니다 sharepoint.stackexchange