Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Hiding a new field name in newform.aspx

  Asked By: Shana    Date: Jul 14    Category: Sharepoint    Views: 2086

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>

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Hiding a new field name in newform.aspx Or get search suggestion and latest updates.




Tagged: