Answers.Body: <p>CiviCRM already does this out-of-the-box to 3 levels deep (In the US they are called Country/State/County). Populating the <code>civicrm_county</code> table in your database with the Nepalese equivalent of counties will get that 3-level chain-select going.</p>
  
  <p>Going down more levels than that isn't supported by core forms... you could create some custom fields for it, or you could just skip over some of the levels. For example, choosing from among 14 zones really isn't that hard - why ask the user to choose a region first?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-16T04:58:16.780Z
Answers.Text: Excellent - many thanks - that sounds like the most sensible thing to do.
  This will be a bit of trial and error my part having never attempted such a thing before, so you may not have hear the last of me yet!
  Thanks again.
Answers.UserDisplayName: jkobier
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-16T05:22:52.250Z
Answers.Text: And sorry - to answer your question about why ask the user for a higher level value- there will be a large amount of old data going into the DB and a lot of the info is actually missing, and there are cases where the only the higher level info is available.
Answers.UserDisplayName: jkobier
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-16T19:07:42.923Z
Answers.Text: Cool. @jkobier don't forget to "accept" this answer. StackExchange still thinks this question is unanswered until you do.
Answers.UserDisplayName: Coleman
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-12T15:58:27.433Z
Answers.LastActivityDate: 2016-08-12T15:58:27.433Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>In this particular use case, you may also want to consider modifying the <a href="https://github.com/PalanteJon/coop.palantetech.countylookup" rel="nofollow">County Lookup</a> extension to pull in some levels of detail with Google Maps data.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-16T05:00:00.987Z
Answers.Text: Thanks, I'll look into this some more once I get the basic functionality working.
Answers.UserDisplayName: jkobier
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-08-12T17:06:27.397Z
Answers.LastActivityDate: 2016-08-12T17:06:27.397Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I am trying to create a set of dropdown lists that are dynamically linked so that the values in list 2 are driven by what is selected in list 1.</p>
  
  <p>Example:
  Consider an address (in Nepal) which has a Country(1), Region (4), Zone(14), District(75), Municipality(133).</p>
  
  <p>I want to be able to select a region, which will then display the zones in that region only - select a zone, which will then display the districts in that particular zone - select a district, and then same with municipality.</p>
  
  <p>Is this possible?</p>
  
  <p>Thanks, Joe.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-03T10:33:17.913Z
Comments.Text: Can you make this clearer in terms of how this data is being stored. The address function already does the required for Country/Region, ie if you choose Nepal you should then get the list of Regions for Nepal assuming you have enabled them via Localisation. For the next levels I think you would need to be adding the values to the County table etc as these are not  included. But don't want to spend time detailing that if you are wanting these as Custom Fields rather than as an actual 'Location' Address.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-16T09:52:36.120Z
Comments.Text: OK, thanks for all the great answers and comments which have allowed to think in a bit more detail about how I ideally want this structured.  Basically I need 4 levels.  In the following list the left hand col is the US address and the right col is the desired Nepali equivalent:
  **US Address == Nepali Equiv**  Country == Country  State == Zone  County == District  City ==  Municipality
Comments.UserDisplayName: jkobier
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-16T09:56:44.573Z
Comments.Text: I checked out the county import and it looks as though it will do the trick by mofifying the values.  The tradeoff is that I lose districts but I can live with that.
Comments.UserDisplayName: jkobier
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-16T09:58:57.883Z
Comments.Text: The localizaition for Nepal does not appear to be working - Select NEPAL from the Country list but no values appear in the county field.  I have a workaround being he import as mentioned above - just thought i'd mention it.
Comments.UserDisplayName: jkobier
Tags: <custom-fields><menu>
Title: Dynamic or Cascading Dropdowns - how?
ThreadText: # Dynamic or Cascading Dropdowns - how?
  
  (Asked by: username_0 on 2016-08-03)
  
  I am trying to create a set of dropdown lists that are dynamically linked so that the values in list 2 are driven by what is selected in list 1.
  
  Example:
  Consider an address (in Nepal) which has a Country(1), Region (4), Zone(14), District(75), Municipality(133).
  
  I want to be able to select a region, which will then display the zones in that region only - select a zone, which will then display the districts in that particular zone - select a district, and then same with municipality.
  
  Is this possible?
  
  Thanks, Joe.
  
  **Tags:** custom-fields, menu
  
  > **Comments:**
  > **username_1**: Can you make this clearer in terms of how this data is being stored. The address function already does the required for Country/Region, ie if you choose Nepal you should then get the list of Regions for Nepal assuming you have enabled them via Localisation. For the next levels I think you would need to be adding the values to the County table etc as these are not  included. But don't want to spend time detailing that if you are wanting these as Custom Fields rather than as an actual 'Location' Address.  
  > **username_0**: OK, thanks for all the great answers and comments which have allowed to think in a bit more detail about how I ideally want this structured.  Basically I need 4 levels.  In the following list the left hand col is the US address and the right col is the desired Nepali equivalent: **US Address == Nepali Equiv**  Country == Country  State == Zone  County == District  City ==  Municipality  
  > **username_0**: I checked out the county import and it looks as though it will do the trick by mofifying the values.  The tradeoff is that I lose districts but I can live with that.  
  > **username_0**: The localizaition for Nepal does not appear to be working - Select NEPAL from the Country list but no values appear in the county field.  I have a workaround being he import as mentioned above - just thought i'd mention it.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2016-08-12. Score: 0 | Accepted answer
  
  CiviCRM already does this out-of-the-box to 3 levels deep (In the US they are called Country/State/County). Populating the `civicrm_county` table in your database with the Nepalese equivalent of counties will get that 3-level chain-select going.
  
  Going down more levels than that isn't supported by core forms... you could create some custom fields for it, or you could just skip over some of the levels. For example, choosing from among 14 zones really isn't that hard - why ask the user to choose a region first?
  
  > **Comments:**
  > **username_0**: Excellent - many thanks - that sounds like the most sensible thing to do. This will be a bit of trial and error my part having never attempted such a thing before, so you may not have hear the last of me yet! Thanks again.  
  > **username_0**: And sorry - to answer your question about why ask the user for a higher level value- there will be a large amount of old data going into the DB and a lot of the info is actually missing, and there are cases where the only the higher level info is available.  
  > **username_2**: Cool. @username_0 don't forget to "accept" this answer. StackExchange still thinks this question is unanswered until you do.  
  
  ---
  
  ### Answer by username_3 on 2016-08-12. Score: 1
  
  In this particular use case, you may also want to consider modifying the [County Lookup](https://github.com/PalanteJon/coop.palantetech.countylookup) extension to pull in some levels of detail with Google Maps data.
  
  > **Comments:**
  > **username_0**: Thanks, I'll look into this some more once I get the basic functionality working.  
  
  ---
  
  