Skip to main content

Modifier: :country

Country code (ISO 3166-1 alpha-2). Write it after a colon: {Phone:9:country}

About

ProductGravity Forms
RequiresGravity Forms 3.0 or later
Works onPhone, standard format fields
In the pickerWhat to show
CombiningOnly 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 tagOutputWithout 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 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.