Re is out: see what's new Lifetime updates on every purchase Support replies within 24 hours Secure checkout via Gumroad 8,500+ sales since 2016

Country field

Updated 2 min read 9 views

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

SettingWhat it does
Only these countriesType 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 outCountries taken off the list, picked the same way, such as ru, by. Use it alone to offer every country but these.
Picked firstThe country the list opens on, picked from the list, such as us.
Fill fromWhere the starting value comes from, such as a URL parameter ?country=fr. See Fields.
Start with an empty choiceOn by default: the list opens on “— Please choose —”, so visitors pick a country themselves. Not shown with Allow several.
Empty choice labelThe text of that empty line.
Allow severalVisitors can pick more than one country, holding Ctrl or Cmd.
RequiredVisitors must pick a country to send the form.
FlagsOn 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

MessageDefault text
Option not on the listPlease pick one of the options.

For a phone number with the country’s format, use the Tel field’s Mask.

Was this article helpful?