<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Microsoft Sharepoint Server &#187; Custom List</title>
	<atom:link href="http://www.fivenumber.com/tag/custom-list/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.fivenumber.com</link>
	<description>It&#039;s all about SharePoint</description>
	<lastBuildDate>Fri, 28 May 2010 09:21:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<image>
<link>http://www.fivenumber.com</link>
<url>http://www.fivenumber.com/wp-content/mbp-favicon/5.jpg</url>
<title>Microsoft Sharepoint Server</title>
</image>
		<item>
		<title>Set task list title textbox to readonly mode in Sharepoint 2007</title>
		<link>http://www.fivenumber.com/set-task-list-title-textbox-to-readonly-mode-in-sharepoint-2007/</link>
		<comments>http://www.fivenumber.com/set-task-list-title-textbox-to-readonly-mode-in-sharepoint-2007/#comments</comments>
		<pubDate>Fri, 05 Sep 2008 14:23:11 +0000</pubDate>
		<dc:creator>GVK</dc:creator>
				<category><![CDATA[MOSS - Customization with SPD]]></category>
		<category><![CDATA[Custom List]]></category>
		<category><![CDATA[Sharepoint]]></category>
		<category><![CDATA[Sharepoint Designer]]></category>

		<guid isPermaLink="false">http://www.fivenumber.com/?p=239</guid>
		<description><![CDATA[One of my client asked to set the task list title textbox to readonly mode when the user selects edit item property from the context menu.
So, I thought to complete this scenario by making use of javascript

Open the EditForm.aspx in Sharepiont designer
Select one td tag to write the javascript which sets the Title textbox to [...]]]></description>
			<content:encoded><![CDATA[<p>One of my client asked to set the task list <strong>title</strong> textbox to <strong>readonly </strong>mode when the user selects edit item property from the context menu.<br />
So, I thought to complete this scenario by making use of javascript</p>
<ul>
<li>Open the <strong>EditForm.aspx</strong> in Sharepiont designer</li>
<li>Select one td tag to write the javascript which sets the <strong>Title </strong>textbox to <strong>readonly </strong>mode</li>
<li>First of all write <strong>&lt;script language=&#8221;javascript&#8221;&gt;</strong></li>
<li>Then <strong>document.&lt;formname&gt;.&lt;textboxname&gt;.disabled=&#8221;true&#8221;;</strong></li>
<li>In the above step <strong>form name</strong> can be found by selecting the page view source of <strong>Editform.aspx</strong></li>
</ul>
<div id="attachment_240" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.fivenumber.com/wp-content/uploads/2008/09/21.gif" rel="lightbox[239]"><img class="size-medium wp-image-240" title="View source of EditForm.aspx to find out form name" src="http://www.fivenumber.com/wp-content/uploads/2008/09/21-300x233.gif" alt="View source of EditForm.aspx to find out form name" width="300" height="233" /></a><p class="wp-caption-text">View source of EditForm.aspx to find out form name</p></div>
<ul>
<li>In the same way find out the <strong>textbox name</strong> by selecting the page view source of <strong>Editform.aspx</strong></li>
</ul>
<div id="attachment_241" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.fivenumber.com/wp-content/uploads/2008/09/32.gif" rel="lightbox[239]"><img class="size-medium wp-image-241" title="View source of EditForm.aspx to findout textbox name" src="http://www.fivenumber.com/wp-content/uploads/2008/09/32-300x200.gif" alt="View source of EditForm.aspx to findout textbox name" width="300" height="200" /></a><p class="wp-caption-text">View source of EditForm.aspx to find out textbox name</p></div>
<ul>
<li>At last your script looks like this</li>
</ul>
<p>&lt;!&#8211;Textbox Readonly Script Starts Here&#8211;&gt;</p>
<p>&lt;script language=&#8221;javascript&#8221;&gt;<br />
document.aspnetForm.<br />
ctl00$m$g_99782022_7721_4b5a_baa3_ac4b844844dd$ctl00$ctl04$ctl00$ctl00$ctl00$ctl04$ctl00$ctl00$TextField.<br />
disabled=&#8221;true&#8221;;<br />
&lt;/script&gt;</p>
<p>&lt;!&#8211;Textbox Readonly Script Ends Here&#8211;&gt;</p>
<div id="attachment_244" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.fivenumber.com/wp-content/uploads/2008/09/12.gif" rel="lightbox[239]"><img class="size-medium wp-image-244" title="Readonly script in Sharepoint designer" src="http://www.fivenumber.com/wp-content/uploads/2008/09/12-300x64.gif" alt="Readonly script in Sharepoint designer" width="300" height="64" /></a><p class="wp-caption-text">Readonly script in Sharepoint designer</p></div>
<ul>
<li>Add the script tag in some td (example:&lt;td&gt;Script goes here&#8230;&lt;/td&gt;) as shown in above image</li>
<li>Save <strong>EditForm.aspx</strong> in Sharepoint designer and browse in explorer, now you can view the <strong>Title</strong> textbox is set to <strong>readonly </strong>mode, means users cannot edit the <strong>Title </strong>textbox</li>
</ul>
<div id="attachment_242" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.fivenumber.com/wp-content/uploads/2008/09/41.gif" rel="lightbox[239]"><img class="size-medium wp-image-242" title="Title textbox set to readonly mode" src="http://www.fivenumber.com/wp-content/uploads/2008/09/41-300x211.gif" alt="Title textbox set to readonly mode" width="300" height="211" /></a><p class="wp-caption-text">Title textbox set to readonly mode</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.fivenumber.com/set-task-list-title-textbox-to-readonly-mode-in-sharepoint-2007/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
