[country] – Country

[country name="your_select" save_as="code"]

Country field.

Attributes:

AttributeExamplesDescription
name*name="unique_field_name"The field name. Needs to be unique in the form.
Required.
save_assave_as="code"
save_as="code_lower"
save_as="name"
save_as="name_lower"
Defines what to save.
code: Saves the country code in upper case. Eg: "ES".
code_lower: Saves the country code in lower case. Eg: "es".
name: Saves the country name. Eg: "Spain".
name_lower: Saves the country name in lower case. Eg: "spain".

Default: code.
Optional.
valuevalue="ES"
value="Spain"
value="spain"
The initial selected option.
Note: The value needs to match with "save_as" attribute value.
Optional.
placeholderplaceholder="Choose your country"Adds a disabled option at the start of the options list to work as placeholder.
Optional.
multiplemultiple="multiple"Allows user to select multiple options.
Optional.

This field also supports common HTML attributes, as well as label & description attributes.