Skip to main content

Posts

Showing posts from January, 2014

How to hide recurrence fields from Calender list using javascript

Put following code in the content Editor webpart of EditForm.aspx, NewForm.aspx and DispForm.aspx to hide "All Day Event, Recurrence and Workspace columns " /*   Detail: This code is to hide all three fields - 'All Day Event','Recurrence','Workspace' from the form */ _spBodyOnLoadFunctionNames.push("hideall()"); function hideall() { HideField("All Day Event"); HideField("Recurrence"); HideField("Workspace"); HideField("Is Active"); } function HideField(title){ var header_h3=document.getElementsByTagName("h3") ; for(var i = 0; i {     var el = header_h3[i];     var foundField ;    if(el.className=="ms-standardheader")     {         for(var j=0; j         {             if(el.childNodes[j].innerHTML == title || el.childNodes[j].nodeValue == title)             {                 var elRow = el.parentNode.parentNode ;                 elRow.style.display = "none"