Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Option 1: Lookup list, if for entry into list
If you can make an extra group ZYX which contains everybody except the people in XYZ then you can make the following:

  1. Create a list with the choices A,B,C,D,E
  2. On each item break inheritance and assign view right to groups XYZ and ZYX
  3. Make your dropdown a lookup into the list

Option 2: Audiences, if webparts on page
Create two audiences one for people in group XYZ and one for others
Insert two webparts one for the first audience and one for the second with different configuration

Option 3: Search Based

  1. Make a list an entry that only can be seen by group XYZ
  2. Insert a search web part looking for the entry.
  3. Change the XSLT to show A,B,E as result and C, D if no result

Option 4: Code

share|improve this answer
    
Thanks Per ... That was a great help..!! I Have done using Option 1...!! Can u give me more details on Option 4. How should i start with..!! Should i go for creating Site Coulmns or Event Receivers..?? I am trying with Option 2 but how could i change the item values , that i don't know...!! Much Thanks Again Per –  Kishan Apr 3 '12 at 22:04
    
The reason for putting 4 options in is that your requirements a vague about how you'd use the dropdown. But if it's for adding values to a listitem, then Option 1 is the only good one. Option 4 would be possible using javascript on the form page –  Per Jakobsen Apr 4 '12 at 6:32
    
Thanks Per...!! –  Kishan Apr 4 '12 at 23:05
    
Per...!! If we want to disabled the selected drop down option after their Selection..!! Do you have any idea how to proceed with it..?? Thanks In Advance..!! –  Kishan Apr 5 '12 at 18:22
    
It's beginning to sound as if javascript on the form page using Client Object model is the best solution, but it's a bit hard to say without knowing what your requirements are and what has been implemented. Maybe you should create a new question with more information about what you need and add a like to it here. –  Per Jakobsen Apr 5 '12 at 20:40
show 1 more comment

Lookup column. Set the permissions as appropriate on the list providing the values.

share|improve this answer
    
Thanks Paul..!! I have done it using the Lookup column...!! –  Kishan Apr 3 '12 at 22:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.