SharePoint Asked by Medes on November 13, 2021
I have created a custom user field as follows
<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>
added it to my content type
<FieldRef ID="{9B49F1A5-7FFB-400B-9B0E-0FC4D6C1417C}" Name="AMtalatFieldEditors" DisplayName="My Editors" Required="TRUE" Customization="" ShowInNewForm="TRUE"/>
add it to the page layout
<div id="editorsDiv">
<SharePointWebControls:UserField ID="AMtalatFieldEditors" FieldName="AMtalatFieldEditors" runat="server" />
</div>
I edit a page and change the page layout to the mine and fill out the user field and click on Save. But the value of user field is disappeared and when I click on Check in, it says:
Error: you have to fill out the required property and when I click on “OK” it redirects me to the page to fill the properties. it seems I never can check in my pages.
This is issue with the browser HTML5 validation I believe. The way to get away is either ensuring to click save button without or before validation fires and other is to amend changes using SP designer.
Answered by stak on November 13, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP