- wegoshopAsked on June 24, 2012 at 03:11 PM
Is it possible to add a dropdown list of cities for the user to select from in the address element template, similar to the function of selecting their country?
- gori-mathewAnswered on June 24, 2012 at 03:36 PM
Hi;Unfortunately there is no already designed template for City just like for country. The workaround is to create it using Drop Down field under 'Form Tools'.
I hope you are looking for an option like one on below form; http://www.myjotform.com/form/21756110728552
- wegoshopAnswered on June 24, 2012 at 03:40 PM
Yes, that is what i am looking for but I do not want to create a drop down field outside of the address field template, I prefer the look and set up to the address field template and cannot seem to duplicate it by creating a bunch of different text boxes and drop down fields.
- JotForm FounderaytekinAnswered on June 25, 2012 at 02:53 AM
This is only possible if you use the full form source code and add the options there.
Here is how you can get the form source code. Open the form on the Form Builder:
1. Open "Setup & Share" tab on toolbar,
2. Click on "Embed Form"
3. Click on "Source Code" and copy the code provided.
Once you copied the full form source code to your web site, then you can find the City question on the source code, and change it to a dropdown manually.
- wegoshopAnswered on June 29, 2012 at 06:59 PM
Thank you, its a bit cumbersome to have to change form code, so I have decided to just let people fill in their own city. But this should be looked at as a possible implementation in the future.
- JotForm SupportabajanAnswered on June 30, 2012 at 02:57 AM
Although I agree that it would be nice to have such functionality, it may not be practical. For one thing, it has to be decided what a city is considered to be: A population of 150,000+, 500,000+ or 1,000,000+? (See Total Number of Cities in the World. Bridgetown has less than 100,000 people but it's my island's capital city and most capitals in the West Indies contain much smaller populations.) Also, ideally, it should be setup in such a way that if a country is selected, only the cities belonging to that country are displayed. Finally, the load time of the form should be taken into consideration: The more content in a form, the longer it will take to load.
Nevertheless, thanks for the suggestion.