Welcome to Office Zealot Sign in | Join | Help

255 Character Limit on Document Library Text Fields

Had a friend ask “Do you know of a way to increase "description" fields (currently only 255 characters are allowed) in Doc libraries ?”

The answer is that this limit is set in the ows.js  script file (not the database).  Look for the function
NoteFieldFValidateCore and remove (or change) the following snippet:

if (fld.frm.wBaseType == 1 && field.value && field.value.length > 255)
   {
   fld.stError = StBuildParam(L_TextFieldMax_Text, fld.stDisplay, 255);
   return false;
   }

 

Published Wednesday, October 12, 2005 6:29 PM by Mauro

Comments

Thursday, October 13, 2005 6:51 AM by Anonymous

# re: 255 Character Limit on Document Library Text Fields

Great tip - thanks :)
Wednesday, November 16, 2005 5:53 PM by Anonymous

# re: 255 Character Limit on Document Library Text Fields

Is there a way to increase the the character limits in the columns of a form library that read data from an infopath form?
Monday, November 28, 2005 3:38 PM by Anonymous

# re: 255 Character Limit on Document Library Text Fields

I did find the file. Does the modification change the length for all libraries? Can I change the text field lenth for one individual library?

Friday, June 02, 2006 9:43 AM by Anonymous

# re: 255 Character Limit on Document Library Text Fields

My IT department will not make this change for the multiple line text based on Microsoft's KB article 909839, which says that "if you change the character limit for the Text field to more than 255 characters, you cannot demote the OLE property in the Office document."

First of all, does anyone have any idea what the implications of not being able to "demote the OLE property in the Office document" would be?

And, secondly, why is there even an option for multiple line text field if the limit is 255 characters?

Thanks for any assistance anyone can provide.
Tuesday, November 14, 2006 12:57 PM by Anonymous

# re: 255 Character Limit on Document Library Text Fields

what is this demote the OLE property? Does anyone know? if I make the above change how does it effect office and sharepoint?
Thursday, November 23, 2006 3:29 AM by Anonymous

# re: 255 Character Limit on Document Library Text Fields

demoting is
To copy the property values found in a SharePoint Portal Server document profile to the properties of a Microsoft Office document. For example, the author name entered in the Author property on the document profile is copied to the Author field on a Word document's properties page.

promoting
To copy the property values found in a Microsoft Office document to the properties of a SharePoint Portal Server document profile. For example, the author name entered in the Author field of a Word document's properties page is copied to the Author property on the document profile
Tuesday, June 26, 2007 10:13 AM by The Boiler Room - Mark Kruger, Microsoft SharePoint MVP

# Free SharePoint Web Parts (3rd Party)

Free SharePoint Web Parts (3rd Party) Konrad Brunner - UGS's Web Parts (broken link 8/25) Document

Thursday, January 22, 2009 1:24 AM by sharepoint character limitation | keyongtech

# sharepoint character limitation | keyongtech

Friday, June 11, 2010 1:43 AM by bhavtosh

# re: 255 Character Limit on Document Library Text Fields

This is a nice trick to bypass the limit when you edit the text from the Web browser...

What if the user checks out the document and edits the text both and fills in more than 255 chars...

will data be saved when the doc is "checked in"

thanks

Anonymous comments are disabled