Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Dependent list WebPart?

  Asked By: Ronald    Date: Nov 19    Category: Sharepoint    Views: 1780

We need this functionality desperately.

Pretend we have a document library which has a column which is
populated via this lookup list:

State City

Alaska Anchorage
Alaska Fairbanks
Alaska Juneau
New Jersey Long Branch
New Jersey Neptune
New Jersey Asbury Park
New Jersey Kearny
Maine Orono
Maine Bangor
Maine Fort Kent

And—pretend this lookup list is hundred of records long.

On the upload document form, we want 2 fields—one for state and one
for city and when the value is picked for state then the values for
city are FILTERED, yielding only a few values out of the original

Can someone please get us started in the right direction?



3 Answers Found

Answer #1    Answered By: Cassidy Sharpe     Answered On: Nov 19

The best information I've found (but not had time to consume) about
modifying elements on pages like the upload  page is in Stacy Draper's
SharePoint 2003 Advanced Concepts book:

If memory serves, Stacy wrote about this in chapter 04.

Answer #2    Answered By: Peter Peterson     Answered On: Nov 19

We are doing this by adding JavaScript on Upload.aspx and EditForm.aspx page. When you select a State, it will change the values  in the second drop down list  dynamically.

Answer #3    Answered By: Hans Weiss     Answered On: Nov 19

This can certainly be achieved using JavaScript too. On a
given form, you can manipulate the select list  options as objects using
client-side JavaScript events. Keep an array of the initial options.
When the user selects the value from the first list, clear the second
and repopulate it with only the valid options related to the selected

Didn't find what you were looking for? Find more on Dependent list WebPart? Or get search suggestion and latest updates.