none
Javascript CEWP worked in SharePoint 2013 but will not work after migrating to SharePoint 2019 RRS feed

  • Question

  • In SharePoint 2013 we used a Content Editor to add some text to a Form. This works fine in 2013 but when we mograted to 2016 and then 2019 we can never get the javascript to work. Any thoughts?

    <script type="text/javascript" src="../../SiteAssets/jquery/jquery-3.2.1.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {
            //Headings
            $('<tr><td><h2>DISCOVERY REQUEST</h2></td></tr>').insertBefore($('h3:contains("CaseID")').parent().parent());
            $('<tr><td><h2>---------- FOR FASU USE ONLY ----------</h2></td></tr>').insertBefore($('h3:contains("CD")').parent().parent());

            //Hide content type dropdown in Edit
           // $("select[id*='ContentTypeChoice']").closest('tr').hide();
        });

    </script>

    Monday, November 9, 2020 6:53 PM

All replies