Tuesday, January 6, 2009

Hiding List form fields by user rights in Moss 2007

Limiting presentation of data based on user rights (NOT the same as roles --
that may be trickier).

There are Codeplex projects that offer some field-by-field visibility and editability controls; see

http://www.codeplex.com/SPListDisplaySetting

And

http://www.codeplex.com/sptoolbasket

and possibly others.

-- Joshua

------ Forwarded Message
From: Laura Laura <laura.rogers@healthsouth.com>
Reply-To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Date: Wed, 24 Dec 2008 19:47:51 -0000
To: "sharepointdiscussions@yahoogroups.com"
<sharepointdiscussions@yahoogroups.com>
Subject: [sharepointdiscussions] Re: Hiding List form fields by user rights
in Moss 2007


I did something similar, and to hide and show rows (fields) of the
custom form according to certain permissions, you can use the
Conditional Formatting feature!

After you've inserted your custom form into the page in SharePoint
Designer, here's what you do.
In this example, I want to only show this field to people who have
"Approval" rights on the list:

1. Select the whole row that contains the field that you want to hide.
2. In Conditional Formatting, click <Create> and choose <show content>
3. Click <Advanced...>
4. In the expression box, put:
ddwrt:IfHasRights(16)

5. Click OK twice
6. Where did I get this mysterious "16" number?

http://www.wssdemo.com/blog/archive/2007/08.aspx
<http://www.wssdemo.com/blog/archive/2007/08.aspx>

Someone named Ian has listed all of the types of rights, and the
associated number. For example, "edit" is equal to 4.

Laura Rogers



--- In sharepointdiscussions@yahoogroups.com, "Tom" <tomsrig@...> wrote:
>
> Is there any way, using SharePoint Designer, to make a standard lists
> form field visible or invisible by user rights?
>
> I have the following Example list:
>
> Name
> Address
> Phone Number
>
> I want to make the phone number field in the form invisible to some
> users and visible to others.
>
> I want to do the same in the Edit Item form.
>
> Any ideas?
>
> Why did MS leave out the capability to make fields in forms
> invisible/visible per user access rights?
>




[Non-text portions of this message have been removed]


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/sharepointdiscussions/

<*> Your email settings:
Individual Email Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/sharepointdiscussions/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:sharepointdiscussions-digest@yahoogroups.com
mailto:sharepointdiscussions-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
sharepointdiscussions-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/


------ End of Forwarded Message

1 comment:

Dr.AbuBenAdam said...

You can use SPServices and jQuery to Hide SharePoint List Columns based on User Permissions:

http://www.sharepointdiary.com/2013/07/hide-sharepoint-list-columns-based-on-user-permissions.html#ixzz2aB35DAwz