Question

I am developing the SharePoint Portal in 2010 where i will be using a Dropdown with values in it. These Values will depend on the group to which the user belongs.

For Eg.

If Drop Values are A, B , C, D, E

and there is a Group XYZ

If User A logs in & he belongs to Group XYZ the Drop down should show: A B E

Else the drop down should show : C, D

Anybody having an idea on how to do it. Please Share it.

Thanks Kishan Srivastava

Was it helpful?

Solution

A 'no code' way would be to have the column as a lookup column into another list which.was security trimmed at the item level. Or you could have folders in this list and use these as the security containers for the items. Code ways involve the use of client side scripting. I'd recommend the spservices codeplex library to act as the javascript wrapper to the Sharepoint webservices. I'll think this through a bit more if the first way doesn't work.

OTHER TIPS

You can use the SPServices code in this answer to understand if a user belongs to a group.

agreed with SPServices method it has very good for me

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top