I made a custom note field named "Content_Feedback" without specifying Allow Unlimited Length in document libraries

    DisplayName="Content Feedback"

enter image description here It should thus be limited to 255 characters since as far as I know, this property is responsible from changing it from a regular single line of text field definition.

The field is used by a content type which is not overriding this definition and finally by a custom list, redeclaring the field as it.

Unfortunately, it's possible to enter more than 255 characters in it. I made several tests on my dev machine ("works on my machine syndrome") back at the implementation time and anything above 255 characters was successfully & automatically trimmed. Now it's no more the case.

  • Are you aware of anything in a recent CU that would have changed this (got this on both dec 2011 cu et June 2012 cu)
  • Are you aware of anything that would prevent this limit ?
  • Did I misunderstand the Unlimited Lenght in Document Libraries ?

Thanks for your support

  • Why not use MaxLength="255"? msdn.microsoft.com/en-us/library/aa979575.aspx Aug 8, 2012 at 13:02
  • Thanks for the link. I would have if I was aware of that unexpected - for me - behavior of unlimited note field when omitting the unlimited length in document library. I don't think it has to do with a custom list for a document library. Thanks a lot for your input anyway. Aug 8, 2012 at 14:52

2 Answers 2


You can put more then 255 chars in it using code. However using the SharePoint UI this should not be possible.


Based on my experience this is not applicable in SharePoint OOB however you can develop event receiver to check this field server side and client side you can use java script for validation, also not that MaxLength property will not work and you have to use javascript

hope this helps

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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