Is it possible to make a dropdown for cities ?

Comments

rconstantine’s picture

Status: Active » Closed (works as designed)

This has been brought up before, but it looks like it was probably part of a thread with a different title, so I can't point you to the issue number where the discussion took place. Anyway, the long and the short of it, is that the list is too long and too rapidly changing to maintain and free data sources are several years behind for both city lists and postal codes.

So the short answer is that I won't be adding this feature.

However, feel free to post your own plugin to this module. With one or two simple hook_form_alter mods you could check for the existence of your module and route validation of the city field through your list of cities as well as convert the city field to a drop down and populate it from that list. If you aren't a programmer, that would be a good project to cut your teeth on.

Good luck.

Alternatively, if you have a list of addresses known before hand, you can use the city drop down from that new feature I added. See the README for details. In other words, in creating your own module to add-on to this one, there are several routes you could take to accomplish this.