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 custome list with a multiple line of text type column. When user enter value in this field in "add new item" form, I dont want user to enter more than 1000 chars. I am not able to find "Maximum number of characters allowed" control for it like single line of text type column. Please help. Thanks in advance.

share|improve this question
add comment

4 Answers

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
share|improve this answer
add comment

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.

$("textarea[title$='FieldName']").keyup(function(){
    if($(this).val().length > 1000){
        $(this).val(inputVal.slice(0,-1));
    }
});

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.

share|improve this answer
add comment

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.

Regards,

  • Matt
share|improve this answer
add comment

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

http://sharepointtaproom.com/2011/01/16/max-length-of-a-multi-line-text-note-field-on-sharepoint-publishing-page/

Additionally , kindly note that this is not something out of the box solution and the reason is discussed here
http://social.technet.microsoft.com/Forums/en-US/sharepointgeneral/thread/5e8cc504-03d0-4d26-81f9-1608c2c5881f/

share|improve this answer
    
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. –  Derek Gusoff Jan 11 '13 at 18:33
add comment

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.