Hi there,

I'm very new to Drupal. Started directly with Drupal 7 and I have no coding knowledge of any kind.

My goal: To have a drop down list where users can select a country. Then, after selecting the country another drop down list would appear where the users can select one of the cities generated as per the country originally selected.

I found the module Hierarchical_Select (downloaded and installed) which even has an example that matches exactly what I intend to do: http://wimleers.com/demo/hierarchical-select/config-ui

Plus I already got the list of countries and corresponding cities in .XLS and .SQL (no idea how to use this format though) from here: http://askbahar.com/2010/07/02/world-city-locations-database/

But I simply don't know how to get started in order to reach my goal.

Any ideas or suggestions if you happen to already have done something like this?

Thanks!

P.S: I saw some alternative solutions involving AJAX, but since I don't have any coding knowledge I didn't spend much time reading about them.

Comments

rjetty’s picture

Hello There,
I am exactly in the same boat as you...were you able to sort out how to implement the Country > State dropdown list? If so, could you please help me?

Thanks,

Sajjad Zaheer’s picture

Ajax Chain Select Module for drupal 7 can help. Example code is also present within the module to help you getting started.

Here is the link: https://www.drupal.org/project/ajax_chain_select