Expand-Collapse All Groups in SharePoint 2013 List Views using jQuery

SharePoint doesn’t have the ability to expand/collapse all groups in grouped list views. However, with jQuery we can bring Expand All-Collapse All buttons in SharePoint 2013 grouped list views. Just edit the grouped view page (Site Actions Gear >> Edit Page), add a “Script Editor” Web part and then place the below…

Read more

jQuery Rotating Banner (Carousel/Image Slider) for SharePoint

In continuation to my earlier post Rotating Banner for SharePoint using jQuery, one enhancement requested by people is: The ability to dynamically fetch images from SharePoint library, so that new banner images can be easily added, existing banners can be modified without touching the banner code. So, I’ve made changes to fulfill…

Read more

Disable People Picker, Lookup Fields in SharePoint List Forms

In continuation with my earlier post: How to Make SharePoint List Column (Form Field) Read Only, There are questions on disabling (or making them read-only) People Picker, Lookup Fields in SharePoint List Forms. Here I’m sharing the jQuery scripts to disable people picker / Lookup fields in SharePoint list forms (NewForm.aspx, EditForm.aspx)….

Read more

Hide SharePoint List Columns based on User Permissions

Requirement: We have a “Requests” link in our Help Desk site. The “Status” field in the help desk requests list should be hidden when users create a new entry in the list. Same time, Status field must be visible to people in “Help desk operators” group. So, the requirement is to hide…

Read more

How to Make SharePoint List Column (Form Field) Read Only?

How to make a column read only in SharePoint 2010? Well, there are many ways. Here are some: Make column read only in SharePoint list programmatically use jQuery to make SharePoint field read only Using SharePoint Designer to set field read only in list forms. Programmatically Set SharePoint list field to Read-Only…

Read more

Set SharePoint Person or Group Field (People Picker) Default Value to Current User

Requirement: In a request tracking system, wanted to auto-populate people picker value from currently logged-in User.  Solution:  How to set the People Picker field value to the current user? Let’s use jQuery and SPServices to fetch the logged-in user name and fill the SharePoint list form’s people picker field value. In short,…

Read more

Get Query String and Set List Form Field Value using jQuery

Years back, I used JavaScript for the similar requirement in SharePoint 2007: Get the value from URL Query String and populate the value of SharePoint list form field: How to Get the Query String from URL and Set SharePoint List Form field value? Now in SharePoint 2010, lets use jQuery to get…

Read more

Change “Save” or “OK” Button Text on SharePoint List Forms

Wouldn’t it be more meaningful to rename SharePoint List NewForm.aspx “Save” or “OK” button text to “Submit” in Request Tracking Lists? Yes! Sure, It’s possible to change the “Save” button’s text to something else which gives more meaning in the context. Using jQuery to Rename “Save” button Text: Place the below jQuery…

Read more

Get Form Field Values from DispForm.aspx, EditForm.aspx Pages in SharePoint

If you have a requirement to extract field values from Display Form or Edit Form pages in SharePoint lists, Use these jQuery scripts: Get Form field value in Display Form (DispForm.aspx): Get Form field value in Edit Form (EditForm.aspx): Use the control tags and attributes accordingly. E.g. For Drop-downs, Instead of “Input”…

Read more