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.