Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

New list item - related drop downs

Posted on 2011-03-21
7
Medium Priority
?
454 Views
Last Modified: 2012-05-11
I have 3 lists that have lookup columns related to each other.
Location, building, room
Buildings have a lookup to location
Rooms have a lookup to buildings

How can I restrict the buildings in the drop down based on the location selected in the previous drop down (and then again with rooms?)
0
Comment
Question by:QPR
  • 4
  • 3
7 Comments
 
LVL 15

Expert Comment

by:sharepointguru14
ID: 35185553
Natively out of the box with sharepoint....I don't know of any way. What version of SharePoint are you using?

To answer the question though, you can do it by creating a custom field control. Good walkthrough with code samples on how to create your own can be found here:
http://datacogs.com/datablogs/archive/2007/08/26/641.aspx

Or you can just download one that should work for you here:
http://customfieldcontrols.codeplex.com/
0
 
LVL 29

Author Comment

by:QPR
ID: 35185590
2010, the download and sample seem to indicate 2007
0
 
LVL 15

Accepted Solution

by:
sharepointguru14 earned 2000 total points
ID: 35185680
yep they are 2007 related I took a guess since this was a big problem with 07. In 2010 we can use InfoPath which gives us a no code solution. Below you can find 2 links that do a nice just of walking you through the process and explaining it along the way.

http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/

http://blogs.msdn.com/b/infopath/archive/2004/03/24/95529.aspx?wa=wsignin1.0
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 29

Author Comment

by:QPR
ID: 35185762
Looks perfect... but when I click the customise form button it tells me I need infopath 2010 installed.
This I can do. But when this site is delivered will the user adding the new item also be expected to have infopath 2010 on their client or will the logic for the cascading drop downs be copied to the server somewhere?
0
 
LVL 15

Expert Comment

by:sharepointguru14
ID: 35185784
you need infopath to actually use the form designer to make the changes to the form. Users will not need the infopath client as the solutions at the links provided will work with browser based forms so they will click and it will open in the browser. no client needed.
0
 
LVL 29

Author Comment

by:QPR
ID: 35185800
awesome, thanks
I'll install infopath 2010 after my meeting and give it a go
0
 
LVL 29

Author Closing Comment

by:QPR
ID: 35186446
Works perfect! thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
In case you ever have to remove a faulty web part from a page , add the following to the end of the page url ?contents=1
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question