Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
    
I am facing the same problem.... Can anyone help us? –  Dario Mar 25 at 13:49

1 Answer 1

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.

share|improve this answer
    
Uhm, how could this possibly be an HTML 5 issue? –  Robert Lindgren Mar 25 at 14:34
    
Well thats not issue with HTML5, but the behaviour of HTML5 required validation is not addressed properly while saving in SP –  stak Mar 25 at 14:55
    
Html5 validation is not involved in any part –  Robert Lindgren Mar 25 at 15:12
    
You no need to write for HTML5 validation, it takes places when you have a input tag with required, and in this case the FieldRef has Required="TRUE". If you inspect element you could see required attribute. –  stak Mar 25 at 16:14
    
My problem was, there was anothoer required field which was filed out. so it was why I got this error. It was not the user field problem. If you have another field which is required and is empty your value to userfield will not be saved. –  Medes Mar 26 at 11:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.