Streaming live at 10am (PST)

Choose your country - Form


#1

Hello everyone,

Just quick question, if i want to put in my site a drop down menu to choose your country, is there a way to upload all the countries names at once? I mean because entering them one by one is too much!

Thank you!


#2

Nobody please? This is not possible?


#3

Don't think so. The hard way is the only way! :/


#4

Let me enter this topic... the hard way you said? It means I have a good hour and a half of copy pasting in front of me?

great ◕‿◕


#5

Yes.....unless you got some magic! smile


#6

Yep, I copy paste like crazy, that's my superpower...


#7

didn't you (@vincent) just ask the same / similar question ?

@vincent had a load of fun recently doing something this.


#8

I first commented on this then went to add a feature request... wasn't really a question (:

For every country I pasted I tried to remember the capital city..; jeez I forgot quite a bunch of them... I used to know them by heart when I was in school!


#9

Haha yes sorry guys. It's definitely a pain to manually add this info. We def want to add "presets" for dropdowns down the road. Thanks for the feedback!


#10

@thesergie. Wanted to circle back with this topic and see if the Webflow staff has addressed this issue with the release of the CMS feature? Appreciate your insight.


#11

Hey,

We have this feature on a roadmap, tho we didn't implement that in our CMS Release.


In the meantime you could use one of the script I've written 2 years ago to populate an option field.

function addCountries() {
      var countriesfile = "United States of America, Afghanistan, Albania, Algeria, Andorra, Angola, Antigua & Deps, Argentina, Armenia, Australia, Austria, Azerbaijan, Bahamas, Bahrain, Bangladesh, Barbados, Belarus, Belgium, Belize, Benin, Bhutan, Bolivia, Bosnia Herzegovina, Botswana, Brazil, Brunei, Bulgaria, Burkina, Burma, Burundi, Cambodia, Cameroon, Canada, Cape Verde, Central African Rep, Chad, Chile, People's Republic of China, Republic of China, Colombia, Comoros, Democratic Republic of the Congo, Republic of the Congo, Costa Rica, Croatia, Cuba, Cyprus, Czech Republic, Danzig, Denmark, Djibouti, Dominica, Dominican Republic, East Timor, Ecuador, Egypt, El Salvador, Equatorial Guinea, Eritrea, Estonia, Ethiopia, Fiji, Finland, France, Gabon, Gaza Strip, The Gambia, Georgia, Germany, Ghana, Greece, Grenada, Guatemala, Guinea, Guinea-Bissau, Guyana, Haiti, Holy Roman Empire, Honduras, Hungary, Iceland, India, Indonesia, Iran, Iraq, Republic of Ireland, Israel, Italy, Ivory Coast, Jamaica, Japan, Jonathanland, Jordan, Kazakhstan, Kenya, Kiribati, North Korea, South Korea, Kosovo, Kuwait, Kyrgyzstan, Laos, Latvia, Lebanon, Lesotho, Liberia, Libya, Liechtenstein, Lithuania, Luxembourg, Macedonia, Madagascar, Malawi, Malaysia, Maldives, Mali, Malta, Marshall Islands, Mauritania, Mauritius, Mexico, Micronesia, Moldova, Monaco, Mongolia, Montenegro, Morocco, Mount Athos, Mozambique, Namibia, Nauru, Nepal, Newfoundland, Netherlands, New Zealand, Nicaragua, Niger, Nigeria, Norway, Oman, Ottoman Empire, Pakistan, Palau, Panama, Papua New Guinea, Paraguay, Peru, Philippines, Poland, Portugal, Prussia, Qatar, Romania, Rome, Russian Federation, Rwanda, St Kitts & Nevis, St Lucia, Saint Vincent & the, Grenadines, Samoa, San Marino, Sao Tome & Principe, Saudi Arabia, Senegal, Serbia, Seychelles, Sierra Leone, Singapore, Slovakia, Slovenia, Solomon Islands, Somalia, South Africa, Spain, Sri Lanka, Sudan, Suriname, Swaziland, Sweden, Switzerland, Syria, Tajikistan, Tanzania, Thailand, Togo, Tonga, Trinidad & Tobago, Tunisia, Turkey, Turkmenistan, Tuvalu, Uganda, Ukraine, United Arab Emirates, United Kingdom, Uruguay, Uzbekistan, Vanuatu, Vatican City, Venezuela, Vietnam, Yemen, Zambia, Zimbabwe";
      var countries = countriesfile.split(", ");
      for(var c = 0; c<countries.length; c++) {
        $('#country').append('<option value="' + countries[c] + '">' + countries[c] + '</option>');
      }
}

Select field has an UNIQUE ID of country. This is just a function and needs to be called somewhere in your script.


Please note that Webflow doesn't support custom code integrations. This is just my snippet I've created 2 years ago and thought it would be good to share it here as a temporary solution. You can always ask for assistance with such code at our Embed/Custom Code forum category: http://forum.webflow.com/c/embed-help.

Cheers,
Bart


#12

We haven't had a chance to yet. But we're focusing more on improvements and features for the Designer so hopefully this isn't too far off. It's not a high priority though so I'm not making any promises


#13

Hey! My name is Ben and I help with product research here at Webflow. For the last few weeks I have been looking at ways to improve forms. Please help us by filling out this quick survey:
https://webflow.typeform.com/to/uolcEJ
Thank you for your input!


#14

Just filled up your survey.

Regarding the country selection, any news? or should I still do it the hard way?

Thank you.


#15

This feature would be part of the "predefined options for dropdown fields".


#16

Hey, so Google Forms doesn't have "predefined options for dropdowns" either, but it gives the option to create a lot of values at once for a dropdown, if you copy+paste a text list where every value is in a different line. That could be a great temporary solution that may be easier to implement.


#17

That's a great idea! Will add a note to our feature backlog. :beers:


#18