<?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: Use jQuery to populate and hide fields in an EditForm.aspx</title>
	<atom:link href="http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/</link>
	<description>Whatever I'm working on, really...</description>
	<lastBuildDate>Tue, 20 Jul 2010 16:35:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andy</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-6399</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 18 Mar 2010 12:04:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-6399</guid>
		<description>My Code was:
$(&quot;:input[title=&#039;Content Type&#039;]&quot;).parent().parent().hide();

...so I don&#039;t really see anything wrong with what you&#039;ve written Prasad.

Are you sure you&#039;ve referenced the jQuery .js library?</description>
		<content:encoded><![CDATA[<p>My Code was:<br />
$(&#8220;:input[title='Content Type']&#8220;).parent().parent().hide();</p>
<p>&#8230;so I don&#8217;t really see anything wrong with what you&#8217;ve written Prasad.</p>
<p>Are you sure you&#8217;ve referenced the jQuery .js library?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prasad</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-6398</link>
		<dc:creator>Prasad</dc:creator>
		<pubDate>Thu, 18 Mar 2010 00:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-6398</guid>
		<description>Hi All,

I am running same issue what you had before. Please let me know How Do I hide the content type drop down on EditForm.aspx page in Custom List.

My code 
=================================================




$(document).ready(function() {
$(&quot;:input[title=&#039;Content Type&#039;]&quot;).parent().parent().hide();
});

============================================

Please help me If you can.</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I am running same issue what you had before. Please let me know How Do I hide the content type drop down on EditForm.aspx page in Custom List.</p>
<p>My code<br />
=================================================</p>
<p>$(document).ready(function() {<br />
$(&#8220;:input[title='Content Type']&#8220;).parent().parent().hide();<br />
});</p>
<p>============================================</p>
<p>Please help me If you can.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsha Vardhan</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-6127</link>
		<dc:creator>Harsha Vardhan</dc:creator>
		<pubDate>Thu, 10 Dec 2009 14:38:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-6127</guid>
		<description>Hi 

Great Post...
Thank You very Much..
I have successfully hide the &quot;Content Type&quot; Field from editform.aspx

Thanks a lot..............</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>Great Post&#8230;<br />
Thank You very Much..<br />
I have successfully hide the &#8220;Content Type&#8221; Field from editform.aspx</p>
<p>Thanks a lot&#8230;&#8230;&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsha Vardhan</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-6126</link>
		<dc:creator>Harsha Vardhan</dc:creator>
		<pubDate>Thu, 10 Dec 2009 14:07:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-6126</guid>
		<description>Hi 

In editform.aspx I have used below script to hide Content Type field 
But its not working ..

 

$(document).ready(function()
{
$(”:input[title=&#039;Content Type&#039;]“).parent().parent().hide();
)};


Please help me where I am going Wrong.</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>In editform.aspx I have used below script to hide Content Type field<br />
But its not working ..</p>
<p>$(document).ready(function()<br />
{<br />
$(”:input[title='Content Type']“).parent().parent().hide();<br />
)};</p>
<p>Please help me where I am going Wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsha Vardhan</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-6125</link>
		<dc:creator>Harsha Vardhan</dc:creator>
		<pubDate>Thu, 10 Dec 2009 13:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-6125</guid>
		<description>Hi 

I created custom list and added content types from sharepoint UI. 
when edit the List items, I want to hide the &quot;Content Type&quot; Field.
could you please help me.</description>
		<content:encoded><![CDATA[<p>Hi </p>
<p>I created custom list and added content types from sharepoint UI.<br />
when edit the List items, I want to hide the &#8220;Content Type&#8221; Field.<br />
could you please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harsha Vardhan</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-6124</link>
		<dc:creator>Harsha Vardhan</dc:creator>
		<pubDate>Thu, 10 Dec 2009 12:59:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-6124</guid>
		<description>Hi 
I want to hide &quot;Content Type&quot; Field in EditForm.aspx
I dont have sharepoint designer stet up. so How to add jqueryscript to ContentEditorWebpart. 

could you please provide complete script to add it to the contenteditorwebpart.

Thanks,
Vardhan.</description>
		<content:encoded><![CDATA[<p>Hi<br />
I want to hide &#8220;Content Type&#8221; Field in EditForm.aspx<br />
I dont have sharepoint designer stet up. so How to add jqueryscript to ContentEditorWebpart. </p>
<p>could you please provide complete script to add it to the contenteditorwebpart.</p>
<p>Thanks,<br />
Vardhan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jcnet</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-6123</link>
		<dc:creator>jcnet</dc:creator>
		<pubDate>Wed, 09 Dec 2009 20:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-6123</guid>
		<description>Hi Thank You.

I&#039;m trying to fit something very similar into this.. Here trying to change the label text for columns label fields of an editform.aspx, this condition trips and does contain my column name, but  the next line does not actually change it.. I suspect because inside a . Sorry new to jquery here. 

function smartform(){
	$(&quot;td.ms-formlabel&quot;).each(function(){
				
		if($(this).text().match(&#039;#HP#&#039;)){
		$(this).text(&#039;something else&#039;);
		
		}


Related to what you are doing here, and how would hide all rows  (labels and  input controls) that don&#039;t have &quot;#HP#&quot; in the the label (column name)?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Thank You.</p>
<p>I&#8217;m trying to fit something very similar into this.. Here trying to change the label text for columns label fields of an editform.aspx, this condition trips and does contain my column name, but  the next line does not actually change it.. I suspect because inside a . Sorry new to jquery here. </p>
<p>function smartform(){<br />
	$(&#8220;td.ms-formlabel&#8221;).each(function(){</p>
<p>		if($(this).text().match(&#8216;#HP#&#8217;)){<br />
		$(this).text(&#8217;something else&#8217;);</p>
<p>		}</p>
<p>Related to what you are doing here, and how would hide all rows  (labels and  input controls) that don&#8217;t have &#8220;#HP#&#8221; in the the label (column name)?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-5838</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 10 Aug 2009 10:07:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-5838</guid>
		<description>I&#039;d&#039;ve maybe used one of the content placeholders in the HEAD tag, but that should be a fine location.

What you might need to do is put your line of code inside a 

$(document).ready(function() {
... {Your code here} ...
});

What this will do is then run your code - but only after the Document is ready. Other than that, it looks fine. 

You could also replace the .parent().parent() bit with another jQuery if you wanted, but it isn&#039;t really necessary. If you&#039;re curious, it&#039;d be something like this to find a first matching parent:

http://www.novolocus.com/wp-content/uploads/2009/06/JQuery.PNG</description>
		<content:encoded><![CDATA[<p>I&#8217;d've maybe used one of the content placeholders in the HEAD tag, but that should be a fine location.</p>
<p>What you might need to do is put your line of code inside a </p>
<p>$(document).ready(function() {<br />
&#8230; {Your code here} &#8230;<br />
});</p>
<p>What this will do is then run your code &#8211; but only after the Document is ready. Other than that, it looks fine. </p>
<p>You could also replace the .parent().parent() bit with another jQuery if you wanted, but it isn&#8217;t really necessary. If you&#8217;re curious, it&#8217;d be something like this to find a first matching parent:</p>
<p><a href="http://www.novolocus.com/wp-content/uploads/2009/06/JQuery.PNG" rel="nofollow">http://www.novolocus.com/wp-content/uploads/2009/06/JQuery.PNG</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drew</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-5817</link>
		<dc:creator>drew</dc:creator>
		<pubDate>Thu, 30 Jul 2009 13:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-5817</guid>
		<description>It seems to have removed my HTML.  I&#039;ll try it one more time:
So after &lt; asp:Content ContentPlaceHolderID=&quot;PlaceHolderMain&quot; runat=&quot;server&quot; &gt; is where I put my code:
&lt; script language=&quot;javascript&quot; type=&quot;text/javascript&quot; src=&quot;URL TO 1.3.2.min.js&quot; &gt; &lt; /script &gt;
&lt; script  language=&quot;javascript&quot; type=&quot;text/javascript&quot; &gt;
$(”:input[title=&#039;Content Type&#039;]“).parent().parent().hide();
&lt; /script &gt;

Did I place it in the wrong part of the page? Did I do something wrong in the second part?</description>
		<content:encoded><![CDATA[<p>It seems to have removed my HTML.  I&#8217;ll try it one more time:<br />
So after &lt; asp:Content ContentPlaceHolderID=&#8221;PlaceHolderMain&#8221; runat=&#8221;server&#8221; &gt; is where I put my code:<br />
&lt; script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221; src=&#8221;URL TO 1.3.2.min.js&#8221; &gt; &lt; /script &gt;<br />
&lt; script  language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221; &gt;<br />
$(”:input[title='Content Type']“).parent().parent().hide();<br />
&lt; /script &gt;</p>
<p>Did I place it in the wrong part of the page? Did I do something wrong in the second part?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: drew</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-5816</link>
		<dc:creator>drew</dc:creator>
		<pubDate>Thu, 30 Jul 2009 13:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-5816</guid>
		<description>I&#039;m a bit confused on how to do this (I think what I did should have worked!).

I just need to hide the content type field.  So after  is where i put my code:

$(&quot;:input[title=&#039;Content Type&#039;]&quot;).parent().parent().hide();


Did I place it in the wrong part of the page? Did I do something wrong in the second part?</description>
		<content:encoded><![CDATA[<p>I&#8217;m a bit confused on how to do this (I think what I did should have worked!).</p>
<p>I just need to hide the content type field.  So after  is where i put my code:</p>
<p>$(&#8220;:input[title='Content Type']&#8220;).parent().parent().hide();</p>
<p>Did I place it in the wrong part of the page? Did I do something wrong in the second part?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-5790</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 20 Jul 2009 13:04:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-5790</guid>
		<description>Ben,

Probably the easiest way to check the name being used is to go to the page and view the source. Something like the IE Dev toolbar can make that much simpler.  Check through the inputs on the page until you find the correct one, and check the title.

Also, did you remember to put in a reference to jQuery (I always forget that)

Oh, and your script tags must be full &quot;&lt;script ... &gt;&lt;/script&gt;&quot; tags. &quot;&lt;script ... /&gt;&quot; won&#039;t work.</description>
		<content:encoded><![CDATA[<p>Ben,</p>
<p>Probably the easiest way to check the name being used is to go to the page and view the source. Something like the IE Dev toolbar can make that much simpler.  Check through the inputs on the page until you find the correct one, and check the title.</p>
<p>Also, did you remember to put in a reference to jQuery (I always forget that)</p>
<p>Oh, and your script tags must be full &#8220;&lt;script &#8230; &gt;&lt;/script&gt;&#8221; tags. &#8220;&lt;script &#8230; /&gt;&#8221; won&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-5789</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Mon, 20 Jul 2009 12:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-5789</guid>
		<description>I have tried to use your code above as its exactly what I need to to on an EditForm.aspx (although with out attachments). However it does not seem to to work. Do it matter when the javasctrtip code is place on the page?

on the line var smartObjRef = $(&quot;:input[title=&#039;Resolution&#039;]&quot;); is &#039;Resolution&#039; the name of the column as defined in Site Settings ?

Thanks for you help

Ben</description>
		<content:encoded><![CDATA[<p>I have tried to use your code above as its exactly what I need to to on an EditForm.aspx (although with out attachments). However it does not seem to to work. Do it matter when the javasctrtip code is place on the page?</p>
<p>on the line var smartObjRef = $(&#8220;:input[title='Resolution']&#8220;); is &#8216;Resolution&#8217; the name of the column as defined in Site Settings ?</p>
<p>Thanks for you help</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-5550</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Tue, 19 May 2009 09:25:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-5550</guid>
		<description>Yeah, go for it! (All credit gratefully received)</description>
		<content:encoded><![CDATA[<p>Yeah, go for it! (All credit gratefully received)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Geyer</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-5544</link>
		<dc:creator>Mike Geyer</dc:creator>
		<pubDate>Mon, 18 May 2009 22:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-5544</guid>
		<description>Quite nice.  Thanks for the post.</description>
		<content:encoded><![CDATA[<p>Quite nice.  Thanks for the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Thake</title>
		<link>http://www.novolocus.com/2009/05/18/use-jquery-to-populate-and-hide-fields-in-an-editformaspx/comment-page-1/#comment-5542</link>
		<dc:creator>Jeremy Thake</dc:creator>
		<pubDate>Mon, 18 May 2009 22:02:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.novolocus.com/?p=1421#comment-5542</guid>
		<description>Great post Andy! If you don&#039;t mind I&#039;ll add some of this to the sharepointdevwiki?</description>
		<content:encoded><![CDATA[<p>Great post Andy! If you don&#8217;t mind I&#8217;ll add some of this to the sharepointdevwiki?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
