<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: More SharePoint Branding &#8211; Customisation using JavaScript &#8211; Part 1</title>
	<atom:link href="http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/</link>
	<description>After much frustration, it seems DEFAULT is the way to go...</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:45:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: rellimeb</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-80689</link>
		<dc:creator>rellimeb</dc:creator>
		<pubDate>Thu, 03 Nov 2011 13:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-80689</guid>
		<description>Awesome 3 part series.  This has helped me a great deal.  For those of you wanting to make this Javascript compatible with Firefox as well, you&#039;ll have to make a couple tweeks.  Here&#039;s my modified findacontrol function:

function findacontrol(content,where)
{
  var result
  if (!where) where=document
  for (var i=0,l=where.childNodes.length;i0)
        return where.childNodes[i]
        if (result=findacontrol(content,where.childNodes[i]))
      return result
  }
}</description>
		<content:encoded><![CDATA[<p>Awesome 3 part series.  This has helped me a great deal.  For those of you wanting to make this Javascript compatible with Firefox as well, you&#8217;ll have to make a couple tweeks.  Here&#8217;s my modified findacontrol function:</p>
<p>function findacontrol(content,where)<br />
{<br />
  var result<br />
  if (!where) where=document<br />
  for (var i=0,l=where.childNodes.length;i0)<br />
        return where.childNodes[i]<br />
        if (result=findacontrol(content,where.childNodes[i]))<br />
      return result<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-80619</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Fri, 21 Oct 2011 16:01:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-80619</guid>
		<description>Also, how would you get it to hide multiple lines? It only seems to work with one line!




_spBodyOnLoadFunctionNames.push(&quot;hideFields&quot;);

function findacontrol(FieldName) {

   var arr = document.getElementsByTagName(&quot;!&quot;);
   // get all comments
   for (var i=0;i  0)
      {         return arr[i];      }
   }
}

function hideFields() {
   
   var control1 = findacontrol(&quot;Title&quot;);
   control1.parentNode.parentNode.style.display=&quot;none&quot;;
   control1 = findacontrol(&quot;Document Link&quot;);
   control1.parentNode.parentNode.style.display=&quot;none&quot;;
   control1 = findacontrol(&quot;PublishDate&quot;);
   control1.parentNode.parentNode.style.display=&quot;none&quot;;
   
   var control2 = findacontrol(&quot;Divider&quot;);
   control2.parentNode.parentNode.style.display=&quot;none&quot;;
   control2 = findacontrol(&quot;Document Link&quot;);
   control2.parentNode.parentNode.style.display=&quot;none&quot;;
   control2 = findacontrol(&quot;PublishDate&quot;);
   control2.parentNode.parentNode.style.display=&quot;none&quot;
}
</description>
		<content:encoded><![CDATA[<p>Also, how would you get it to hide multiple lines? It only seems to work with one line!</p>
<p>_spBodyOnLoadFunctionNames.push(&#8220;hideFields&#8221;);</p>
<p>function findacontrol(FieldName) {</p>
<p>   var arr = document.getElementsByTagName(&#8220;!&#8221;);<br />
   // get all comments<br />
   for (var i=0;i  0)<br />
      {         return arr[i];      }<br />
   }<br />
}</p>
<p>function hideFields() {</p>
<p>   var control1 = findacontrol(&#8220;Title&#8221;);<br />
   control1.parentNode.parentNode.style.display=&#8221;none&#8221;;<br />
   control1 = findacontrol(&#8220;Document Link&#8221;);<br />
   control1.parentNode.parentNode.style.display=&#8221;none&#8221;;<br />
   control1 = findacontrol(&#8220;PublishDate&#8221;);<br />
   control1.parentNode.parentNode.style.display=&#8221;none&#8221;;</p>
<p>   var control2 = findacontrol(&#8220;Divider&#8221;);<br />
   control2.parentNode.parentNode.style.display=&#8221;none&#8221;;<br />
   control2 = findacontrol(&#8220;Document Link&#8221;);<br />
   control2.parentNode.parentNode.style.display=&#8221;none&#8221;;<br />
   control2 = findacontrol(&#8220;PublishDate&#8221;);<br />
   control2.parentNode.parentNode.style.display=&#8221;none&#8221;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-80616</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Thu, 20 Oct 2011 10:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-80616</guid>
		<description>This code works fine for hiding the entire line (Question &amp; Answer) - How would you hide just the answer part?</description>
		<content:encoded><![CDATA[<p>This code works fine for hiding the entire line (Question &amp; Answer) &#8211; How would you hide just the answer part?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stephane</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-80490</link>
		<dc:creator>stephane</dc:creator>
		<pubDate>Fri, 30 Sep 2011 17:08:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-80490</guid>
		<description>Sorry, The Title element is rederred as follows:

input name=&quot;ctl00$PlaceHolderMain$g_4860838c_0c1a_440a_a113_1a0fcf83d9b5$ff1_1&quot; type=&quot;text&quot; value=&quot;TestTitle&quot; id=&quot;ctl00_PlaceHolderMain_g_4860838c_0c1a_440a_a113_1a0fcf83d9b5_ff1_1&quot; style=&quot;width:244px;&quot;</description>
		<content:encoded><![CDATA[<p>Sorry, The Title element is rederred as follows:</p>
<p>input name=&#8221;ctl00$PlaceHolderMain$g_4860838c_0c1a_440a_a113_1a0fcf83d9b5$ff1_1&#8243; type=&#8221;text&#8221; value=&#8221;TestTitle&#8221; id=&#8221;ctl00_PlaceHolderMain_g_4860838c_0c1a_440a_a113_1a0fcf83d9b5_ff1_1&#8243; style=&#8221;width:244px;&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephane</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-80489</link>
		<dc:creator>Stephane</dc:creator>
		<pubDate>Fri, 30 Sep 2011 17:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-80489</guid>
		<description>Hi.  This stuff is a great learning document.  I&#039;m still scratching my head on how to retrieve the &#039;Title&#039; field.  I created a custom form for the Tasks list and I&#039;ve been able to read all the values except for Title.  This element is renderred as follows: 



However, none of these work: 
1) getTagFromIdentifierAndTitle(&quot;input&quot;,&quot;text&quot;,&quot;ff1_1&quot;);
2) getTagFromIdentifierAndTitle(&quot;input&quot;,&quot;text&quot;,&quot;Title&quot;);
3) getTagFromIdentifierAndTitle(&quot;input&quot;,&quot;TextField&quot;,&quot;ff1_1&quot;);
4) getTagFromIdentifierAndTitle(&quot;input&quot;,&quot;TextField&quot;,&quot;Title&quot;);

Help!  Thanks</description>
		<content:encoded><![CDATA[<p>Hi.  This stuff is a great learning document.  I&#8217;m still scratching my head on how to retrieve the &#8216;Title&#8217; field.  I created a custom form for the Tasks list and I&#8217;ve been able to read all the values except for Title.  This element is renderred as follows: </p>
<p>However, none of these work:<br />
1) getTagFromIdentifierAndTitle(&#8220;input&#8221;,&#8221;text&#8221;,&#8221;ff1_1&#8243;);<br />
2) getTagFromIdentifierAndTitle(&#8220;input&#8221;,&#8221;text&#8221;,&#8221;Title&#8221;);<br />
3) getTagFromIdentifierAndTitle(&#8220;input&#8221;,&#8221;TextField&#8221;,&#8221;ff1_1&#8243;);<br />
4) getTagFromIdentifierAndTitle(&#8220;input&#8221;,&#8221;TextField&#8221;,&#8221;Title&#8221;);</p>
<p>Help!  Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nancy</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-80453</link>
		<dc:creator>Nancy</dc:creator>
		<pubDate>Wed, 21 Sep 2011 18:18:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-80453</guid>
		<description>I have used this solution many times to hide fields. However, I now have this issue of wanting to make fields DISPLAY only, not editable. The only Edit Form function I want to retain is the ability to add attachments. Can this script be altered to produce that result? I tried things like changing display=&quot;none&quot; to display=&quot;read&quot; or display=&quot;display&quot; but nothing works. Is this possible?</description>
		<content:encoded><![CDATA[<p>I have used this solution many times to hide fields. However, I now have this issue of wanting to make fields DISPLAY only, not editable. The only Edit Form function I want to retain is the ability to add attachments. Can this script be altered to produce that result? I tried things like changing display=&#8221;none&#8221; to display=&#8221;read&#8221; or display=&#8221;display&#8221; but nothing works. Is this possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-80126</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Wed, 20 Jul 2011 17:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-80126</guid>
		<description>nevermind. I&#039;m a goof.
I figured it out and it works. my parent nodes were messed up.

function hideFields() {
   var control = getTagFromIdentifierAndTitle(&quot;select&quot;,&quot;ContentTypeChoice&quot;,&quot;Content Type&quot;);
   control.parentNode.parentNode.style.display=&quot;none&quot;;
}</description>
		<content:encoded><![CDATA[<p>nevermind. I&#8217;m a goof.<br />
I figured it out and it works. my parent nodes were messed up.</p>
<p>function hideFields() {<br />
   var control = getTagFromIdentifierAndTitle(&#8220;select&#8221;,&#8221;ContentTypeChoice&#8221;,&#8221;Content Type&#8221;);<br />
   control.parentNode.parentNode.style.display=&#8221;none&#8221;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicole</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-80125</link>
		<dc:creator>Nicole</dc:creator>
		<pubDate>Wed, 20 Jul 2011 17:41:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-80125</guid>
		<description>I have a question,
I want to hide the content types control from the Edit Form. I need to have content types disabled and they must be visible on my list for my SP Workflow to see them.

Any idea what are the tag names and identifiers to be used for content type control?

   var control = getTagFromIdentifierAndTitle(&quot;select&quot;,&quot;ContentTypeChoice&quot;,&quot;Content Type&quot;);

but it hid all the fields on the editform.
thanks for your help.</description>
		<content:encoded><![CDATA[<p>I have a question,<br />
I want to hide the content types control from the Edit Form. I need to have content types disabled and they must be visible on my list for my SP Workflow to see them.</p>
<p>Any idea what are the tag names and identifiers to be used for content type control?</p>
<p>   var control = getTagFromIdentifierAndTitle(&#8220;select&#8221;,&#8221;ContentTypeChoice&#8221;,&#8221;Content Type&#8221;);</p>
<p>but it hid all the fields on the editform.<br />
thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Islème</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-76127</link>
		<dc:creator>Islème</dc:creator>
		<pubDate>Tue, 28 Dec 2010 16:31:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-76127</guid>
		<description>Good Job Mr Cleverworkarounds !</description>
		<content:encoded><![CDATA[<p>Good Job Mr Cleverworkarounds !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt green</title>
		<link>http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/comment-page-2/#comment-70932</link>
		<dc:creator>matt green</dc:creator>
		<pubDate>Wed, 15 Dec 2010 10:15:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.cleverworkarounds.com/2008/02/07/more-sharepoint-branding-customisation-using-javascript-part-1/#comment-70932</guid>
		<description>
	_spBodyOnLoadFunctionNames.push(&quot;hideFields&quot;);
	function findacontrol(FieldName) 
	{
   		var arr = document.getElementsByTagName(&quot;!&quot;);
   		// get all comments
   		for (var i=0;i  0)
      			{         
      				return arr[i];      
      			}
   		}
	function hideFields() 
	{
		var control = findacontrol(&quot;Complete necessary checks in accordance with Category loading&quot;);
		control.parentNode.parentNode.style.display=&quot;none&quot;;
	}
</description>
		<content:encoded><![CDATA[<p>_spBodyOnLoadFunctionNames.push(&#8220;hideFields&#8221;);<br />
	function findacontrol(FieldName)<br />
	{<br />
   		var arr = document.getElementsByTagName(&#8220;!&#8221;);<br />
   		// get all comments<br />
   		for (var i=0;i  0)<br />
      			{<br />
      				return arr[i];<br />
      			}<br />
   		}<br />
	function hideFields()<br />
	{<br />
		var control = findacontrol(&#8220;Complete necessary checks in accordance with Category loading&#8221;);<br />
		control.parentNode.parentNode.style.display=&#8221;none&#8221;;<br />
	}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

