🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 31, 2026

How to Format International Addresses in Gravity Forms

GravityExtra
How to Format International Addresses in Gravity Forms

Send a parcel to Berlin and the label reads “10117 Berlin”. Send one to Boston and it reads “Boston, MA 02108”. Send one to Tokyo and the address starts with the postal code and ends with the street. Every country has its own way of writing an address, and the people filling in your forms know their own way by heart. When a form makes them type it the wrong way round, they hesitate, they make mistakes, and some of them leave.

Gravity Forms has a good Address field, but its International type shows one layout for every country. This guide explains where that layout goes wrong for visitors outside the United States, what a country-aware address field should do instead, and how to set one up step by step with the Gravity Forms International Address Formats add-on. It is written for site owners who take orders, bookings, registrations or applications from more than one country, and for the developers who build their forms.

One layout for every country: where it goes wrong

The International address type shows a street box, an optional second line, a city, a box called “State / Province / Region”, a box called “ZIP / Postal Code” and a country list, always in that order. That works well enough for North America. Elsewhere it causes quiet problems that show up later, in returned parcels and support emails:

  • The order is wrong for most of the world. In Germany, France, Spain, Italy, the Netherlands, the Nordic countries and much of Europe, the postcode comes before the town. In Japan, China and Korea the address starts with the largest unit and ends with the street. Visitors either type in the order the form asks, which reads oddly on a label, or put things in the wrong boxes.
  • The labels are generic. “ZIP / Postal Code” means nothing special to someone in Ireland, where it is an Eircode, or in India, where it is a PIN code. “State / Province / Region” is a guess for a Japanese prefecture or an emirate in the UAE.
  • Required parts do not match. If you make the address required, every part is required. Singapore addresses have no separate city line and the UAE does not use postcodes, so visitors there type something, anything, to get past the check.
  • Postcodes are not checked. A UK postcode typed as “sw1a1aa”, a Canadian one missing its space or a US ZIP code with four digits is saved as typed. You find out when the courier does.
  • Region names are free text. “CA”, “Calif.” and “California” all end up in your entries, which makes filtering and reporting by state harder than it should be.

None of these break the form. They just make it a little worse for everyone outside one country, and they make your data a little messier with every entry.

What a country-aware address field should do

A good international address form follows the country the visitor picks. Postal services publish how addresses in their country are written, and those rules are stable and well known. A country-aware field should use them in six ways:

  1. Ask for the country first. Everything else depends on it.
  2. Put the parts in the postal order of that country, so the visitor types the address the way they would write it on an envelope.
  3. Use the local words for the postcode, the region and the town.
  4. Only ask for what the country uses, and only require what it needs.
  5. Offer a list where the country has a fixed set of regions, such as states, provinces or prefectures.
  6. Tidy and check the postcode with the country’s pattern, and show an example when it is wrong.

Just as important is what happens after the visitor clicks submit. A browser script can be switched off or changed, so the same rules have to run again on the server before the entry is saved. And the stored entry should stay compatible with everything else that reads it: exports, notifications, payment and shipping add-ons, and your own reports.

Set it up in five minutes

Here is how to turn an existing Address field into a country-aware one with the International Address Formats add-on. You need Gravity Forms 2.9 or newer.

1. Install the add-on and activate the licence

Upload the add-on zip under Plugins → Add New → Upload Plugin and activate it. Then go to Forms → Settings → International Address, paste your license key and click Activate License.

2. Choose the International address type

Open your form in the form editor and click the Address field. Under Address Type, choose International. This is the type with a country list; the country format switches the layout when that list changes.

3. Tick the country format

Tick Country format: order, labels, required parts and postcode check follow the country. That is enough to get started: 65 countries are built in, the country moves to the top of the field, and the labels, order and checks follow the visitor’s choice.

A delivery address form with Japan chosen: postal code 100-0005 first, then the prefecture 東京都 (Tokyo), the city 千代田区 and the street, in the Japanese postal order
With Japan chosen, the field asks for the postal code first and offers a list of prefectures.

4. Pick the countries you serve

If you only ship to some countries, tick them under Countries visitors can choose. The country list on the form then shows only those, and the server refuses any other country even if someone edits the page. This is often the single most useful setting: it removes hundreds of countries visitors scroll past and stops orders you cannot fulfil.

5. Use the formatted address where you need it

In your notification or confirmation, use {Address:3:formatted} (replace 3 with your field ID) for a label-ready address in the postal order of the destination, with the country as the last line. Use {Address:3:nocountry} for domestic labels, {Address:3:oneline} for a single line and {Address:3:country_code} for the two-letter code. The tags are in the merge tag menu, under your field.

What visitors see

The moment a visitor picks a country, the field rearranges itself without reloading the page. A visitor in Germany sees street, then postcode and town side by side. A visitor in the United States sees street, city, a State list and a ZIP code box. A visitor in Japan sees the postal code box first, then a Prefecture list, the city and the street. A visitor in Singapore sees only the street and the postal code, because that is all a Singapore address needs.

The labels change with the country: ZIP code, Postcode, Postal code, PIN code, Eircode, CAP or CEP for the code; State, Province, County, Prefecture or Emirate for the region; City, Town / City or Suburb for the town. Parts that are optional in that country, such as the Eircode and county in Ireland, are marked “(optional)” so visitors do not wonder whether to fill them in.

When the visitor leaves the postcode box, the add-on tidies what they typed. “sw1a1aa” becomes “SW1A 1AA”, “k1a0b1” becomes “K1A 0B1” and “1000005” becomes “100-0005”. If the code still does not fit the country, a short message under the box explains it with an example: “Please enter a valid ZIP code for United States, for example 95014.” Visitors fix it on the spot instead of after a failed delivery.

The same form on a phone with United States chosen: country, street, city, a State list and the ZIP code stacked in one column
On a phone every part takes the full width, and number-only postcodes open the number keypad.

On phones the boxes stack in one column with no sideways scrolling, and countries whose postcodes are digits only open the number keypad. Text boxes follow the direction of what is typed, so an Arabic street name reads right to left, and Japanese, Chinese and Korean addresses are kept exactly as typed.

What happens on the server

Everything the visitor sees in the browser is repeated on your server before Gravity Forms saves the entry. The add-on reads the country that was actually posted, refuses it if it is not on the field’s list, empties any part the country does not use, brings the postcode into the country’s format, matches the region to the country’s list (so “ca” and “California” both store “California”) and checks the parts the country requires. A missing part is named in the message, such as “Please complete: Postcode.”

This matters for two reasons. First, it keeps your data clean even when a browser runs no script, which happens more often than you might think with privacy extensions and old devices. Second, it means a value changed in the browser is never stored: a region injected into the list, a city slipped into a hidden box or a country removed from your list are all caught on the server.

The stored entry still uses the standard address inputs, so nothing downstream has to change. Exports, feeds to email and CRM add-ons, payment add-ons that read the billing address and your own code all see the same six inputs as before, just with cleaner values. Two extra columns are added for convenience: the formatted address on one line and the country code. Both can be shown in the entry list and chosen in the CSV export.

Common situations and how to handle them

An online shop that ships to a handful of countries

Tick the countries you ship to, keep “Show the country first” on and turn on “Pre-select the country from the browser language”. Most visitors then find their own country already chosen and the field already in their format. Put {Address:3:formatted} in the notification to your warehouse so the team can print labels straight from the email.

An international event or membership registration

Leave every country available. Countries without a built-in format keep the standard layout, so nobody is shut out. Use the country code column in the export to group registrations by country, and the formatted column to merge name badges or welcome letters.

A business with its own way for the home market

If your team prefers the usual layout for your home country, or another plugin already handles it, add its code under Keep the standard layout for these countries. Visitors from everywhere else still get their own format.

A country that is not built in

Add it in a few lines of JSON under Forms → Settings → International Address: the postal order, the required parts, a postcode pattern with an example and, if you like, a list of regions. The settings page checks what you enter and names the country to fix if something is wrong. Developers can also change the data in code with a filter. The setup guide lists every key with examples.

Tips for better international address forms

  • Ask for the country before anything else. It saves visitors from retyping.
  • Limit the list to where you deliver. A shorter list is faster to use and avoids orders you cannot fulfil.
  • Keep your own sub-labels short. The add-on keeps any sub-label you set, so make sure it still makes sense in every country, or leave it to the country labels.
  • Test with a few real addresses. Try one from each of your main markets, including one with a region list and one without a postcode.
  • Use the formatted tag for labels, the sub-inputs for logic. The formatted address is for people; the separate city, region and postcode inputs are for filters, routing and integrations.

Frequently asked questions

Does it check that the address actually exists?

No. It checks the postcode format and the region for the country, which catches most typing mistakes. Checking that a street exists needs an outside address service, and this add-on deliberately makes no outside requests.

Will my existing entries change?

No. Entries keep their values. The formatted output uses each entry’s own country, so older entries are shown in their postal order too.

Is it the same as the German Address Format add-on?

No. The German Address Format add-on is built only for Germany, Austria and Switzerland, with a separate house number and an optional postcode to town lookup. International Address Formats covers 65 countries in one field and switches as the visitor changes country. The postcode lookup add-ons for single countries fill in an address; this one formats and checks it.

Is anything sent to an outside service?

No. The formats are bundled with the add-on and every check runs on your own server; the add-on only contacts GravityExtra for its licence and updates.

Which versions of Gravity Forms are supported?

Gravity Forms 2.9 and newer, on WordPress 6.5 or newer with PHP 7.4 or newer.

Get started

If your forms collect addresses from more than one country, let every visitor type their address the way they know it, and keep clean, checked data for yourself. Fewer failed deliveries, fewer support emails and fewer abandoned forms follow. Install the Gravity Forms International Address Formats add-on, tick the country format on your Address field and try it with an address from your biggest market.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr