Modifier: :country
Country code (ISO 3166-1 alpha-2). Write it after a colon: {Phone:9:country}
About
| Product | Gravity Forms |
|---|---|
| Requires | Gravity Forms 3.0 or later |
| Works on | Phone, standard format fields |
| In the picker | What to show |
| Combining | Only works on its own: with any other modifier, it is ignored. |
Examples
Rendered by real Gravity Forms and GravityKit PHP against a test entry.
| Merge tag | Output | Without the modifier |
|---|---|---|
{Cell Phone:12:country} | +1 | +1 413-555-0147 |
Where the merge tag picker offers it
Form fields: Phone, international format.
Where it is left out
| Field kinds | Why |
|---|---|
| Phone, standard format | Needs the international phone format. Gravity Forms only splits a phone number into these parts when the field uses the international format. |