Solved

New list item - related drop downs

Posted on 2011-03-21
7
393 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 500 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now