Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Hiding a new field name in newform.aspx

  Asked By: Shana Graves         Date: Jul 14, 2009      Category: Sharepoint      Views: 492
 

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.

Tagged:              

 

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].