Posts

Showing posts from August, 2018

Customize SharePoint Calendar Days Name using jQuery

Image
How to Customize SharePoint Calendar Days Name using jQuery Step1: Create a page and calendar list to it. Step2: Now add Script Editor Web Part to it and paste the below code. Code- <script src="//code.jquery.com/jquery-3.2.1.min.js"></script> <script type="text/javascript"> //execute the script only when the calendar JS file loads LoadSodByKey("SP.UI.ApplicationPages.Calendar.js", function () {     WaitForCalendarToLoad(); }); function WaitForCalendarToLoad() {     //running your function for the first time IF YOU NEED TO!     ChangeDaysName();     var _onItemsSucceed =      SP.UI.ApplicationPages.CalendarStateHandler.prototype.onItemsSucceed;      SP.UI.ApplicationPages.CalendarStateHandler.prototype.onItemsSucceed =        function($p0, $p1) {             _onItemsSucceed.call(this, $p0, $p1);         //now let it call your function each time the calendar is loaded        ChangeDaysName();     } } function

Hide “edit” link from SharePoint list

Image
How to hide “edit” link from SharePoint list Go to SharePoint list à list settings à advanced settings, under Quick Edit choose “No” to "hide" edit link.

Change the Link and Text of "new item" in SharePoint list

Image
How to change the Link and Text of "new item" in SharePoint list Open site in SharePoint Designer, redirect to the list AllItem View Page and add the script under <PlaceHolderMain> tag. Code- <script type="text/javascript">  $(document).ready(function(){ $("span:contains('new item')").text('New Entry'); $(".ms-heroCommandLink").attr('href','http://srs:port/site/SitePages/NewsAndEvents.aspx'); $(".ms-heroCommandLink").removeAttr("onclick");  });  </script>