I'm trying to use a custom web part to hide a new field name
called
Approval – it doesn't seem to be working. Attached is the
script
code that I am using - does anyone have any input?
<SCRIPT>
<!--
HideElements();
//hide input interface
function HideElements() {
var thTags=document.getElementsByTagName("TH");
//var thTags=document.body.all.tags("TH");
for (var x=0;x<thTags.length;x++) {
//document.write("<H1>" + thTags(x).innerText + "</H1>");
if(thTags(x).innerText=="Recurrence:")
{
thTags
(x).parentElement.style.display='none';//.innerText="";
//document.write("Test");
}
if(thTags(x).innerText=="Approval:") thTags
(x).parentElement.style.display='none';
}//end of for
}//end of hide input section
-->
</SCRIPT>
Do you know someone who can help? Share a link to this thread on twitter, or facebook.