Modifier: :national
National number. Write it after a colon: {Field:1:national}
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:national} | (413) 555-0147 | +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. |