SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
Why not use MaxLength="255"? – RJ Cuthbertson Aug 8 '12 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. – Francois Verbeeck Aug 8 '12 at 14:52

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

share|improve this answer

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

share|improve this answer

Your Answer


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.