Skip to main content

Modifier :country

Country code (ISO 3166-1 alpha-2). Example: {Mobile Phone:133:country} gives GB. On the test form, this field is {Mobile Phone:133} (Phone, international format).

About

ProductGravity Forms
RequiresGravity Forms 3.0 or later
In the pickerWhat to show, for “Phone, international format” fields
CombiningUse it alone. With other modifiers, it is ignored.

Examples

Output from the real plugin code, run on a test entry.

Merge tagOutputWithout the modifier
{Cell Phone:12:country}US+1 413-555-0147

Works on

Form fields: Phone, international format.

Left out

Field kindsWhy
Phone, standard formatNeeds the international phone format. Gravity Forms only splits a phone number into these parts when the field uses the international format.