문제

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?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top