Choose your country - Form

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!

1 Like

Nobody please? This is not possible?

Don’t think so. The hard way is the only way! :confused:

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 ◕‿◕

Yes…unless you got some magic! :slight_smile:

Yep, I copy paste like crazy, that’s my superpower…

1 Like

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

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

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!

2 Likes

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!

5 Likes

@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.

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

2 Likes

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

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:

Thank you for your input!

Just filled up your survey.

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

Thank you.

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

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.

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

1 Like