How to hide the recurring calendar list and all-day event Columns

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.