Country field
A Country field is a dropdown of countries, each with its flag. It looks like the Tel field’s country list: the picked country’s flag, a small arrow and its name inside the field, such as 🇫🇷 ▾ France. Until a country is picked, it shows — Please choose — on its own, lined up with the other fields. It keeps your theme’s look.
<label>Country *
[[country]]
</label>
Settings
| Setting | What it does |
|---|---|
| Only these countries | Type a country’s name and pick it; each one picked shows as a chip you can remove. The list shows them in the order you pick them, such as us, ca, gb, in the order the list shows them. Empty: every country, sorted by name. |
| Leave out | Countries taken off the list, picked the same way, such as ru, by. Use it alone to offer every country but these. |
| Picked first | The country the list opens on, picked from the list, such as us. |
| Fill from | Where the starting value comes from, such as a URL parameter ?country=fr. See Fields. |
| Start with an empty choice | On by default: the list opens on “— Please choose —”, so visitors pick a country themselves. Not shown with Allow several. |
| Empty choice label | The text of that empty line. |
| Allow several | Visitors can pick more than one country, holding Ctrl or Cmd. |
| Required | Visitors must pick a country to send the form. |
| Flags | On by default: a flag before each name in the list, and the picked country’s flag inside the field. Off: a plain list of names. Mails and entries keep the name alone. Windows shows the country’s letters instead of the flag. |
Re:Maily comes with about 70 countries. Developers can add, change or remove them with remaily_countries.
In the mail
[country]prints the country’s name, such as France.[_raw_country]prints its code, such as fr.
Show part of the form for one country
Conditions compare the code. Make a group with the rule “country is us” and it shows only while United States is picked. After you change Countries, save the form so the new ones show up in the rule’s list.
Message
| Message | Default text |
|---|---|
| Option not on the list | Please pick one of the options. |
For a phone number with the country’s format, use the Tel field’s Mask.
Was this article helpful?
Thanks for your feedback!