Showing posts with label Java Script. Show all posts
Showing posts with label Java Script. Show all posts

Dec 13, 2016

Character Limit using JQuery in SharePoint

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

Dec 11, 2012

Captcha using Java Script

Background: Now a days, all the web sites requires inputs (contact us, feedback, etc.) from the end users. But many sites face a problem of spam or unwanted or junk messages. To avoid this we have a java script code which will generate the random codes which should be entered by the users manually. This...

May 14, 2012

Change the Color of a Column in a List in SharePoint

In this article, we will know how to change the color of a column based upon the values in the column. It is something like “Color Indicator” in SharePoint. Scenario: We have a custom list used for Project Tracking. In the list, we have column named STATUS for tracking the...

Feb 13, 2012

Cascading dropdown (or) Filtered Values in Lookup Columns in SharePoint

Update: 27/06/2017 To know about implementing Cascading drop down or filtered lookup in SharePoint 2013 or SP Online using REST API, read this article: Cascading drop down in SharePoint using REST APIUpdate: 06/07/2017 To know about implementing multi-value lookup column and filtering values,...

Nov 24, 2011

Checking whether a file uploaded is of .doc or .docx file format

We can use the Java Script to check whether the file uploaded is of 2003 or 2007 word format. Hence we can handle the validation in the client side. Java Script<script type="text/javascript" language="javascript"> function FileFormatValidate() { var uploadControl = document.getElementById('<%=FileUpload1.ClientID%>').value; //Regular Expression for the fileupload...