<?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>SmashedLife &#187; SharePoint</title>
	<atom:link href="http://www.smashedlife.com/category/sharepoint/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.smashedlife.com</link>
	<description>LIVE every moment, LAUGH every day, LOVE beyond words</description>
	<lastBuildDate>Wed, 26 Jan 2011 08:58:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Hide/Show Edit Fields Based on SharePoint Permissions</title>
		<link>http://www.smashedlife.com/2010/06/hide-edit-fields-based-on-sharepoint-permissions/</link>
		<comments>http://www.smashedlife.com/2010/06/hide-edit-fields-based-on-sharepoint-permissions/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 22:27:57 +0000</pubDate>
		<dc:creator>SmashedLife</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.smashedlife.com/?p=393</guid>
		<description><![CDATA[I have been looking for a way to hide edit fields based on permission levels in SharePoint. I have done it before using conditional formatting in SharePoint Designer but sadly when you do this, it breaks the form. That is when I discovered SPServices. It is essentially a jquery library that simplifies the SharePoint web [...]]]></description>
			<content:encoded><![CDATA[<p>I have been looking for a way to hide edit fields based on permission levels in SharePoint. I have done it before using conditional formatting in SharePoint Designer but sadly when you do this, it breaks the form. That is when I discovered <a href="http://spservices.codeplex.com/" target="_blank">SPServices</a>. It is essentially a jquery library that simplifies the SharePoint web services and makes them easier to use.</p>
<p>Based on the following code snippet, I was able to hide the edit field based around the user&#8217;s permission level in SharePoint.</p>
<pre class="brush: jscript; title: ;">
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function(xData, Status) {
if($(xData.responseXML).find("Group[Name='SHAREPOINTGROUP']").length == 1)
{
$("#DIVID").hide();
}
else
{
$("#DIVID").show();
}
}
});
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.smashedlife.com/2010/06/hide-edit-fields-based-on-sharepoint-permissions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

