Streaming live at 10am (PST)

Adding Country List in Contact Forms


#1

Hi All - I'm having issues with my Contact Form. I've added the "Select" field for the contact form and now want to install a country list option. Where do I find one and how do I add it?

Your fast and precision based help is greatly appreciated!

M


#2

Hello, @mickb

There is no such function like "Install" list of countries, unfortunately. You will have to add it manually.

P.S. I think it would be a great request for Wishlist category.


#3

Already requested here. Do post in that thread to bump it and show your support for this request.


#4

You may be interested in this:
https://community.algolia.com/places/

I haven't used it, but it may be worth a look at.


#5

Will I manually be able to add 213 listed items?

M


#6

There is limitation to 100 items in the dropdown, I think.

In your case you can try this workaround from @bartekkustra

Hope it helps.

Cheers,
Anna


#7

Sabana - I'm not at all a coder/developer. How would I begin to install the custom code and attach it to the SELECT field in the forms?

M


#8

No problems. Just follow these steps:

  1. Add select field to the form

  2. Give this select field some ID (I used “country-select”) and remove all options except first (“Select one…”)

  3. Add this code snippet to the FOOTER Custom code area on the page settings or site settings:


Language Dropdown
#9

Sabanna - Once I follow the steps above, do I need to do anything further (save and publish site) in order to see it?

Pls advise....

M


#10

Yes, sorry that didn't mention that.

You will be able to see the result (all list of countries) only on published site.


#11

WORKS LIKE A CHARM!!!

A BIG THANKS :smiley:
M


#12

This topic was automatically closed after 60 days. New replies are no longer allowed.