locked
error when check in a page containing User field with multiple users in a custom Page Layout RRS feed

  • Question

  • I have created a custom "person or group" field, added it to a content type and added the content type to my page layout.

    <Field
      ID="{9B49F1A5-7FFB-400B-9B0E-0FC4D6C1417C}"
      Name="AMtalatFieldEditors"
      DisplayName="My Editors"
      Type="UserMulti"
      Mult="TRUE"
      Required="TRUE"
      ShowField="FirstName" 
      StaticName="AMtalatFieldEditors"
      SourceID="http://schemas.microsoft.com/sharepoint/v3"
      Customization=""
      UserSelectionMode="PeopleOnly"
      UserSelectionScope="0"
      Group="MyGroup"
      ShowInNewForm="TRUE">
    </Field>

    my content type:

      <FieldRef ID="{9B49F1A5-7FFB-400B-9B0E-0FC4D6C1417C}" Name="AMtalatFieldEditors" DisplayName="My Editors" Required="TRUE" Customization="" ShowInNewForm="TRUE"/>

    and in the page layout

     <div id="editorsDiv">
                <SharePointWebControls:UserField ID="AMtalatFieldEditors" FieldName="AMtalatFieldEditors" runat="server" />
            </div>

    I tried to edit the page to add users to the user field and clicked save, but it seems that the field has lost its value and is empty. Because when I click on Check In, it prompts an error and says you have to fill out all required properties, when I click on Ok it redirects me to edit properties and the field is empty. again I add the user but same error again. 

    thank you very much for helping me to solve this issue, appreciate all kind of advice.

    Tuesday, November 26, 2013 11:10 AM

All replies

  • Can you try adding  List="UserInfo"  to your field definition?


    Dimitri Ayrapetov (MCSE: SharePoint)


    Friday, January 3, 2014 12:31 AM
  • I am facing the same problem, even with the List="UserInfo" attribute set.

    Any other idea?

    Tuesday, March 25, 2014 1:52 PM