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

sorry about the title am not sure how i should name it.

I want to be able to create two columns for a list that have a division - subdivision relation.

If in the first field if i choose People the second field lists people, if i choose Animals in the first field the second one gives me a list of animals.

How can i achieve this ? It has to be in C#.

Thanks alot ;)

share|improve this question
    
So it has to be C# and can not be in JavaScript at all? If you could use JavaScript then this could perhaps help: sharepoint.stackexchange.com/questions/45912/… –  eirikb Oct 16 '12 at 17:10
    
I think the first thing he gives out would be correct, i just dont know how to do it and its not described either –  Dr.Denis McCracleJizz Oct 16 '12 at 17:15
add comment

1 Answer

up vote 2 down vote accepted

I had the same problem and I resolved it using javascript SPServices library on codeplex. Here you have link with description how to use it:

http://spservices.codeplex.com/wikipage?title=%24%28%29.SPServices.SPCascadeDropdowns

It is quite easy and fast solution you don't have be very familiar with javascript.

If you want to use C# code for it you probably have to create SharePoint custom field type.

share|improve this answer
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.