Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Address form requires US state and ZIP for other countries

PRF-361High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Many forms copy a US layout: a State dropdown listing only US states, and a ZIP code field that must be five digits. That works for US visitors. Elsewhere it breaks. Ireland and the UK have no states, many countries have no postal code at all, and other countries use provinces, counties, prefectures or regions with different formats.

Why it costs you leads or sales

A visitor who cannot get past a required field leaves. Others type a made-up state or ZIP, which causes failed address checks, wrong shipping labels, delivery problems and payment fraud flags. Either way you lose orders or create support work.

Checkout completion by visitor countryExample numbers
Checkout completion by visitor country (example)US visitors: 62 %; UK visitors: 38 %; EU visitors: 34 %02448623834US visitorsUK visitorsEU visitors%

Example: illustrative numbers only. A form built for US addresses completes well for US visitors and poorly for others.

Where a visitor from Ireland drops out
  1. Product pageAdds to cart
  2. Select countryChooses Ireland
  3. Address formState and ZIP still required
  4. PaymentNever reached
  5. Order confirmedNo sale

The break is at the address step, so payment and confirmation are never reached.

How to check if your site has it

Test the form as a foreign visitor
  1. Open the form in a private window

    Use your checkout, booking or lead form with no saved autofill.

  2. Switch the country

    Pick the UK, Ireland, Germany, Japan and a country without postal codes, such as the United Arab Emirates.

  3. Watch the State and ZIP fields

    Do the labels change? Is State still a US list? Is the field marked required?

  4. Try to submit with real local data

    Use a genuine-format address for that country, leaving State empty where none exists. Note any error messages.

  5. Repeat on mobile

    Mobile browsers sometimes autofill the wrong field types.

How to fix it

The principle is the same everywhere: the country choice should control which address fields appear, what they are called, and which are required. Where the platform does this for you, check that your theme or custom code is not overriding it.

Make address fields country-aware
  1. Use native checkout

    Shopify checkout adapts State/Province and Postal code by country. Do not replace it with a custom address form.

  2. Check Settings > Markets and Shipping

    Make sure the countries you sell to are enabled so they appear in the country list.

  3. Review theme or app forms

    Custom account or cart-estimator forms in your theme may hard-code US fields. Edit them in the theme code or remove the override.

Show State and postal code rules by countryjavascript
const rules = {
  US: { state: true, stateLabel: 'State', zip: true, zipLabel: 'ZIP code' },
  CA: { state: true, stateLabel: 'Province', zip: true, zipLabel: 'Postal code' },
  GB: { state: false, zip: true, zipLabel: 'Postcode' },
  IE: { state: false, zip: false },
  AE: { state: false, zip: false },
  DEFAULT: { state: false, zip: false }
};

const country = document.querySelector('#country');
const stateWrap = document.querySelector('#state-wrap');
const zipWrap = document.querySelector('#zip-wrap');
const state = document.querySelector('#state');
const zip = document.querySelector('#zip');

function update() {
  const r = rules[country.value] || rules.DEFAULT;
  stateWrap.hidden = !r.state;
  state.required = r.state;
  zipWrap.hidden = !r.zip;
  zip.required = r.zip;
  if (r.stateLabel) stateWrap.querySelector('label').textContent = r.stateLabel;
  if (r.zipLabel) zipWrap.querySelector('label').textContent = r.zipLabel;
}
country.addEventListener('change', update);
update();
Address form for a visitor in Ireland

Before

  • State dropdown lists only US states and is required
  • ZIP code must be five digits
  • Visitor invents values or leaves

After

  • State hidden or optional for Ireland
  • Postcode label and format follow the country
  • Form submits with the real address

How to confirm it's fixed

Verification checklist
  • Switching the country updates labels and required fields
  • A UK address submits with no State
  • An Irish or UAE address submits with no ZIP
  • A US address still requires State and ZIP
  • Canadian addresses show Province and Postal code
  • The order or lead arrives with the address stored correctly in your CRM or store admin
  • Mobile and autofill behave the same

How to prevent it happening again

Re-test with non-US addresses after theme updates, checkout plugin changes, or any edit to form fields. Add a foreign address test to your release checklist. If you sell to new countries, test those first. Keep a small list of sample addresses for each market.

Sample test countries and what to expect
CountryState/regionPostal code
United StatesRequiredZIP required
United KingdomNot usedPostcode required
IrelandCounty optionalEircode optional or recommended
United Arab EmiratesEmirate optionalNot used
CanadaProvince requiredPostal code required

How FunnelGuard handles this

FunnelGuard does not check this yet. Testing country-specific address rules is a possible future check. Today, FunnelGuard runs your real journeys on a schedule, such as lead forms and checkouts, and tells you when a step fails, when tracking hits are missing, or when test leads do not arrive. That can show a form that stopped submitting, but it does not test every country's address rules.

To watch for this issue, run the manual test above for your top markets after each change to checkout or forms. Also review abandoned checkouts or form errors by country in your store or analytics, and read support emails about address problems.

Questions people ask

Why does my checkout ask for a state when I am not in the US?

The form was likely built with US fields fixed in place, or a theme, plugin or custom field rule overrides the platform's country logic. The state field should only be required for countries that use states or provinces.

How do I make the state field optional for other countries?

Use your platform's country-based address settings, or add logic that sets the field to not required when the country is not the US, Canada or another country that needs it. In WooCommerce, check for plugins or code filtering checkout fields.

Which countries do not use ZIP or postal codes?

Some countries, such as the United Arab Emirates and several others, have no postal code system or do not require one. Check each market you sell to rather than assuming, and make the field optional where it is not needed.

Is it okay to just rename ZIP code to Postal code?

Renaming helps, but it is not enough. You also need to relax US-only format checks, such as five digits, and make the field optional where the country has no postal code.

Does Shopify handle international addresses automatically?

Shopify's native checkout adapts address fields by country. Problems usually come from custom theme forms, apps or edited code that use fixed US fields.

How can I test my address form for other countries?

Open the form in a private window, select several countries, and submit a real-format address for each. Check that labels change, unused fields are not required, and the data arrives correctly.

Can FunnelGuard detect a form that requires a US state?

Not yet. FunnelGuard does not check country-specific address rules today; this is a possible future check. It does run your real journeys on a schedule and alert you if a form step fails, so test foreign addresses manually in the meantime.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: intl_input_accepted on language / country variant runs (Stage 28): the country's test address via fill_address; 'state required' / ZIP errors.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.