Objective: implement custom sort functionality for list items make order number (rank) visible on the list First, let’s create custom action for reordering items and make hidden field Order visible and sortable on default view with PowerShell. [void] [System.reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”) | out-null # Add “Change item Order” button at target List $siteUrl = “yourSiteCollectionUrl”; $listTitle =

Read More
Rank list items by custom order with JSLink

Today I was asked how to retrieve all of the SharePoint Groups of the currently logged-in user to sharepoint. To achieve this, first you need to recover the authority connected to sharepoint with the function GetCurrentUser and then read the “ID” property. Once you have this, you can then use the GetGroupsOfUser (userId) that takes as input

Read More
How to return all of the SharePoint groups for the current user using JSOM

A sample JS to clear the taxonomy field value using the JS CSOM. example: var context = SP.ClientContext.get_current(); var list = context.get_web().get_lists().getByTitle(“list title”); var listItem = list.getItemById(58); var field = list.get_fields().getByInternalNameOrTitle(“taxonomyfieldname”); var taxField = context.castTo(field, SP.Taxonomy.TaxonomyField); listItem.parseAndSetFieldValue(“taxonomyfieldname”, “”); listItem.parseAndSetFieldValue(“taxonomyfieldnameTaxHTField”, “”); listItem.update(); context.load(listItem); context.executeQueryAsync(function () {},function(){}); The above code clears the Taxonomy field value using the

Read More
How to cleara Taxonomy field using Javascript CSOM

In this example I will modify jQuery to work correctly with Scripts on Demand, Minimal Download Service, Client Side Rendering, and to be compliant with SharePoint best practices. Over Demanding Scripts Scripts on demand requires some preparation, before files can properly be registered. The requirements are: Code should not be in the Global Namespace Code

Read More
Preparing your SharePoint Javascript files to work with Scripts on Demand, Minimal Download Service and Client Side Rendering

Customers keep asking for dynamic content to be displayed as ’tiles’. The Promoted Links View is only available for static lists, and the Tile Display Template for CSWP is missing. So; I created it! Normally, I would attack this problem with special styling on SharePoint, however, for the first time I’m using SharePoint styling on

Read More
How to use create a SharePoint Tile Display Template for dynamic content