Posts

Showing posts from December, 2016

Character Limit using JQuery in SharePoint

Image
In this post, we will learn how to implement Character Count (here in this example, maximum allowed 2000 characters) using JQuery in SharePoint.

Prerequisite:
1. Create a SharePoint List with a column named "Comments" - data type Multi line text with plain text as the option selected
2. SharePoint Designer 2013 for editing the SharePoint list with span and to identify the ID of the field created

Solution:
1. Open the SP site in SharePoint designer, navigate to the list -> Create a custom new form -> Edit it.
To know how to create a custom new form in SharePoint Designer, read this article.
2. Below is the HTML code for my "Comments field in SharePoint Designer:

1 2 3 4 5 6 7 8 9 10 11 12<tr><tdwidth="190px"valign="top"class="ms-formlabel"><H3class="ms-standardheader"><nobr>Enter your comment:</nobr></H3></td><tdvalign="top"class="ms-formbody"style="…