As required by the project, duplicate and all-day event columns need to be hidden, and the list settings cannot be hidden, nor can the list be hidden by using SharePoint manager2013. For example:
Here, jquery is used to hide newform. aspx of the calendar, for example:
Add the webpart of the [Content Editor] after opening, for example:
Edit html
<script src="/_layouts/15/JunHe_Master/js/jquery-1.9.1.js" type="text/javascript"></script><script type="text/javascript">
_spBodyOnLoadFunctionNames.push("hideall"); function hideall()
{Hidefield ("repeated ");Hidefield ("all-day events "); }
function HideField(title)
{ $(".ms-formtable").find("h3 nobr").each(function () { var text = $(this).text();
if(text==title)
{ $(this).parent().parent().parent().hide();
}
})
}
</script>
Edit editform. aspx in the same way,
Display page dispform. aspx Add the following JS
<script src="/_layouts/15/JunHe_Master/js/jquery-1.9.1.js" type="text/javascript"></script><script type="text/javascript">
_spBodyOnLoadFunctionNames.push("hideall"); function hideall()
{Hidefield ("repeated ");Hidefield ("all-day events "); }
function HideField(title)
{ $(".ms-formtable").find("h3").each(function () { var text = $(this).text();
if(text==title)
{ $(this).parent().parent().hide();
}
})
}
</script>
How to hide the recurring calendar list and all-day event Columns