Foros‎ > ‎Sharepoint‎ > ‎

Disable all day event in Calendar list - Disable List fields

publicado a la‎(s)‎ 28 jul. 2015 8:20 por Ignacio Gonzalez
Add into content editor in new form page, and edit form page

<script type="text/javascript">
function HideField(title){
var header_h3=document.getElementsByTagName("h3") ;

for(var i = 0; i <header_h3.length; i++)
{
    var el = header_h3[i];
    var foundField ;
   if(el.className=="ms-standardheader")
    {
        for(var j=0; j<el.childNodes.length; j++)
        { 
            if(el.childNodes[j].innerHTML == title || el.childNodes[j].nodeValue == title)
            { 
                var elRow = el.parentNode.parentNode ;
                elRow.style.display = "none"; //and hide the row
                foundField = true ;
                break;
            }
        }        
    }
    if(foundField)
        break ;
}
}

HideField("All Day Event");
HideField("Recurrence") ;
HideField("Workspace") ;
</script>
Comments