I have created a custom list with a Multiple line of text type column. When the user enters a value in this field in the "add new item" form, I do not want the user to enter more than 1000 characters.

I am unable to find an option to set character limit for this column, like the "Maximum number of characters allowed" in Single line of text type column.

Please help. Thanks in advance.

6 Answers 6


Use jQuery to solve your issues. Change the FieldName to whatever you named your SharePoint column. Put this on your newForm.aspx page (and EditForm.aspx if you want to limit input there too). Single line fields are processed differently.

    if($(this).val().length > 1000){

This script runs each time the user clicks a button within the multiline field. If the length is more than 1000 characters it removes the last one. You can add different code in the if statement to display a message like "1000 characters max" if needed. But jQuery is your answer here.

  • 2
    One quick addition: in order to truly enforce a character max using this method, you need to specify the max character limit in the slice call, not just -1. Although -1 will take out the very last character in the text area, if you get close to the limit and then hold down a bunch of keys all at once, you can get more characters in because the slice won't happen until keyup. So for a very hard limit, use $(this).val($(this).val().slice(0, 1000)); Jul 30, 2015 at 20:40

Please follow this url carefully. This has the exact solution to your problem.


Additionally , kindly note that this is not something out of the box solution and the reason is discussed here

  • not exactly. Looks like the first link you posted is for a publishing page. Limit looks to be 255 (configurable) for a doc lib, and 2 GB for a list item. Jan 11, 2013 at 18:33

Another option is to use maxlength attribute of textarea to limit the characters. For example:

$( document ).ready(function() {

The above code can be inserted through Content Editor Web Part on NewForm.aspx and EditForm.aspx.


There may be an OOB way of handling this: Validation. In SharePoint 2010 you can add validation to any site column, as well as within the list itself. People would still be able to enter as much text as they want inside the box, but then when they went to save it would give them an error message. Please see SharePoint 2010 Column Validation for detailed answers to this subject.


  • Matt

You can limit number of characters user entered by InfoPath form rules. Just create a rule with this expression on the multiline text box you created.

string-length(.) > 1000

If you are dealing with a list rather than a library, use JuanTrev's answer. It is perfect!

If you are using a library and you a want no code solution to limit multiline length to greater than 255 chars there is a more involved answer:

The notefield control set the limitation when in a doclib the control limits the multiline to 255 chars. :/ You could set the UnlimitedLengthInDocumentLibrary property to true. But then you lose your limits. We need a multipart solution:

First, in the tag for the multiline in your feature, set the ‘UnlimitedLengthInDocumentLibrary’ attribute to TRUE. Second, to set the 1000 character limit in the publishing page layout, change the rendering template for the NoteField as follows:

  InputFieldLabel="Short Description"

    < !-- Override the rendering template for the field -->
        <asp:TextBox id="TextField" TextMode="MultiLine" runat="server"/><br />
          Text="Value cannot exceed 1000 characters."
          runat="server" />

Credit - This answer was presented originally in a blog by BART MCDONOUGH

  • I realize Arko D posted about this solution but I thought it was worth the time to expound upon the details. May 25, 2015 at 22:07
  • But how to insert this in my HTML page layout ? (for SP 2013). I tried to convert this into html markup using code snippets, but everytime i try, i have an unexpected error... Do you have any idea ?
    – Gaelle
    Oct 28, 2016 at 13:02
  • You are going to have to edit the aspx page. Have you tried SharePoint Designer? Oct 28, 2016 at 22:51

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.