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.
|
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.
|
|||
|
|
|
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.
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. |
|||
|
|
|
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,
|
|||
|
|
|
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 |
|||
|