ClientPeoplePicker in CustomForm

I have a Calendar and there are several fields for clients and data entry through a user form. Because the user form uses SharePoint by default: FormField to select people; I have included ClientPeoplePicker using the following

<SharePoint:ClientPeoplePicker Required="true" ValidationEnabled="true" ID="peoplepciker" runat="server" AutoFillEnabled="True" VisibleSuggestions="3" Rows="1" AllowMultipleEntities="false" CssClass="ms-long ms-spellcheck-true" Height="85px" /> 

Can anyone comment on how I can β€œlink” / link the output of this userpicker to a field in a calendar list?

I use only SP_Designer2013 and the SharePoint client and do not have access to the server / server in any other form / form.

Any help is greatly appreciated.

thanks

+6
source share
1 answer

I know that this is probably too late for you, but I also looked for the answer to this question and thought that I would share my decision.

Old control

In my new form, I had a control that I wanted to replace with ClientPeoplePicker.

 <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="New" FieldName="Person" __designer:bind="{ddwrt:DataBind('i',concat('ff2',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Person')}"/> 

New control

The new ClientPeoplePicker only needs the same id attribute as the control that I wanted to replace.

 <SharePoint:ClientPeoplePicker runat="server" id="ff2{$Pos}" /> 

Edit

I found a forum that lists some of the control attributes, and thought I posted them for those who should stumble upon this question.

http://social.msdn.microsoft.com/Forums/en-US/1bd323bf-a009-446b-aac5-e2b9ebde1a07/sharepoint-client-people-picker-allowing-multiple-entries

 <SharePoint:ClientPeoplePicker Required="true" ValidationEnabled="true" ID="pplPickerSiteRequestor" UseLocalSuggestionCache="true" PrincipalAccountType="User" runat="server" VisibleSuggestions="3" Rows="1" AllowMultipleEntities="false" CssClass="ms-long ms-spellcheck-true user-block" ErrorMessage="*" /> <asp:CustomValidator ID="cvpplSiteRequestor" runat="server" ControlToValidate="pplPickerSiteRequestor" ForeColor="Red" ClientValidationFunction="CheckSiteRequestor" ErrorMessage="User is a required field" ValidationGroup="SiteAccessForm" Text="*"> </asp:CustomValidator> function CheckSiteRequestor(sender, args) { args.IsValid = false; var userCount = $("span.ms-entity-resolved").length; //Returns the userNames Count if (userCount === 1) { args.IsValid = true; } } 
+3
source

All Articles