I am working on an enterprise wiki site collection, now when the user edit the properties of the page he will be redirected to the following page :-
so i wanted to hide all the fields except the Name and title, so inside our testing server i edit the page then i added the following code snippet :-
<script>
$('#formTbl tr').filter(function ()
{
return !$(".ms-standardheader", this).text().match(/Name|Title/i);
}).remove();
</script>
where it hide the unwanted fields. now i did the same steps on our live server but the script raised the following error:-
SCRIPT5007: Unable to set property 'ListId' of undefined or null reference EditForm.aspx, line 1230 character 1
so can anyone advice on this please ?