Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Phone field only accepts one country format: how to fix it

PRF-360High impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

A phone field is "forced" to one country when it only accepts one number pattern. Common causes are an input mask such as (999) 999-9999, a pattern attribute that allows exactly 10 digits, a maximum length of 10, or a script that strips the + sign.

Phone numbers differ by country. They have different lengths, different spacing and a country code (the number after the +, such as +44 for the UK). A rule written for one country will reject many valid numbers from others.

Why it costs you leads or sales

The visitor has already decided to contact you. When the form says "Invalid phone number" for a number that is correct, many give up or type a fake one. You lose the lead, or you get a number you cannot call.

The problem is worse if the phone field is required. It is also easy to miss, because anyone testing from your home country sees nothing wrong.

Where an international lead is lost
  1. Ad or search clickVisitor from Germany lands on your page
  2. Fills in formEnters +49 151 23456789
  3. Phone validationRule expects 10 US digits and shows an error
  4. Form submittedNever happens
  5. Lead in CRMNever created

The visitor does everything right, but the phone rule blocks the submit.

Submissions by visitor countryExample numbers
Submissions by visitor country (example)US visitors: 62 % of form starts that submit; UK visitors: 18 % of form starts that submit; German visitors: 15 % of form starts that submit02448621815US visitorsUK visitorsGerman visitors% of form starts that submit

Example: illustrative numbers for a form with a US-only phone rule. Your own rates will differ.

How to check if your site has it

Open your form and try numbers from several countries. Do not rely on your own number.

Test numbers to try (use formats only, not real people's numbers)
FormatWhat to typeShould be accepted?
US(555) 123-4567Yes
UK+44 20 7946 0000Yes
Germany+49 151 23456789Yes
With leading 000044 20 7946 0000Ideally yes
With spaces or dashes+33 1 23 45 67 89Yes
Quick checks
  • Type a number starting with + and see if the field keeps the plus sign.
  • Type a number longer than 10 digits and see if it gets cut off.
  • Type spaces, dashes and brackets and check they are not rejected.
  • Inspect the field and look for pattern, maxlength, type=tel and mask scripts.
  • Check the thank-you page and the CRM entry to see what was actually saved.
A typical problem: pattern allows only 10 digitshtml
<input type="tel" name="phone" pattern="[0-9]{10}" maxlength="10" required>

How to fix it

The goal is to accept any real number and tell the visitor clearly if it looks wrong. Start with the simplest fix, a looser rule, then consider a country selector.

Fix a country-locked phone field
  1. Find the rule

    Look in the form settings, theme or plugin for a mask, pattern, max length or phone validation option.

  2. Remove the fixed mask and length limit

    Allow digits, spaces, dashes, brackets and a leading +. A loose pattern is enough, for example 7 to 15 digits in total.

  3. Consider a country selector

    A flag dropdown that sets the country code helps visitors and gives you cleaner data.

  4. Store numbers in E.164 format

    E.164 is the international standard: a + then country code and number, with no spaces, such as +442079460000. It keeps your CRM and dialer consistent.

  5. Make the field optional if you can

    If you do not need to call everyone, an optional phone field removes the barrier entirely.

Where to change it on your platform
  1. Check your form plugin

    In the phone field settings of your form plugin (for example Gravity Forms, WPForms, Contact Form 7 or Fluent Forms), switch the format from a US or standard mask to an international or no-validation option. Menu names vary by plugin.

  2. Check for pattern attributes

    In Contact Form 7, a tel field with custom HTML may carry a pattern. Remove it or widen it.

A permissive phone input (no country lock)html
<input type="tel" name="phone" autocomplete="tel" inputmode="tel" pattern="^\+?[0-9 ()\-.]{7,20}$" title="Enter your phone number, with country code if outside your own country">
Country selector with intl-tel-input (custom code)javascript
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/intl-tel-input@24/build/css/intlTelInput.css">
<script src="https://cdn.jsdelivr.net/npm/intl-tel-input@24/build/js/intlTelInput.min.js"></script>
<script>
  const input = document.querySelector('input[name="phone"]');
  const iti = window.intlTelInput(input, {
    initialCountry: 'auto',
    geoIpLookup: cb => cb('us'),
    utilsScript: 'https://cdn.jsdelivr.net/npm/intl-tel-input@24/build/js/utils.js'
  });
  input.form.addEventListener('submit', () => {
    input.value = iti.getNumber(); // E.164, e.g. +442079460000
  });
</script>
Phone field behaviour

Before

  • Only 10 digits accepted
  • The + sign is stripped or rejected
  • International visitors see an error and leave

After

  • Country code and spacing accepted
  • Optional country selector
  • Numbers saved in E.164 format
Try the phone ruleInteractive
Phone field locked to one country format

Locked to US format

Leads or data lost

A visitor entering +44 20 7946 0000 gets an error and cannot submit.

Toggle the cause to see the effect on one international visitor.

How to confirm it's fixed

Confirmation checks
  • Submit the form with a UK, a German and a US style test number.
  • Submit one number with a leading + and one with spaces or dashes.
  • Test on a phone as well as a desktop browser.
  • Check the lead arrives in your inbox and CRM with the number intact, including the +.
  • Confirm the thank-you page and your conversion tracking still fire.

How to prevent it happening again

Phone rules often come back when a theme, plugin or form template is updated or replaced. Write down your phone rule in the form's handover notes.

Prevention habits
  • Test every new form with at least two non-local numbers before launch.
  • Re-test after plugin, theme or form builder updates.
  • Check your analytics by country: a country with many form starts and no leads is a warning sign.
  • Prefer a country selector over hand-written masks.
  • Keep validation loose and clean the data later.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. It runs your real form journey on a schedule with a test phone number and checks that the form submits and the test lead arrives. So it will catch a form that rejects its own test number, for example if a change breaks the phone field completely.

What it does not do is try phone numbers from many countries. If your test number is in the format your rule allows, the check passes even when numbers from other countries are blocked. This is a limit of the "test phone only" approach.

There is a free plan with 1 site and 2 journeys with daily checks and no card needed. Paid plans have a 3-day free trial.

Questions people ask

Why does my form say my phone number is invalid?

The field probably uses a rule built for one country, such as exactly 10 digits. Numbers with a country code, a + sign or a different length fail. Check the field's mask, pattern and max length, or the validation option in your form plugin.

How do I allow international phone numbers in a form?

Remove fixed masks and length limits, accept a leading + and spaces or dashes, and consider adding a country selector. Store numbers in E.164 format, like +442079460000, so your CRM can use them.

What is E.164 phone format?

E.164 is the international standard for phone numbers. It is a + sign, the country code and the number, with no spaces or punctuation, up to 15 digits in total. For example, +442079460000.

Should I use a country code dropdown on my phone field?

It is a good idea if you get visitors from several countries. It shows which code to use and helps produce clean numbers. Keep it easy to use on mobile and let people type a full number with + if they prefer.

Why does my phone field remove the plus sign?

A script, mask or sanitising function is likely stripping non-digit characters. Look for numeric-only masks or code that replaces anything other than 0-9. Allow the + at the start, or save the country code separately.

Should the phone field be required on a lead form?

Only if you really need to call every lead. A required phone field adds friction and makes a wrong validation rule more costly. If you can follow up by email, make it optional.

Can FunnelGuard tell me if my phone field blocks other countries?

Only partly. FunnelGuard submits your form with a test phone number and checks that the lead arrives, but it does not try numbers from many countries. You need to test non-local formats by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: intl_input_accepted on language / country variant runs (Stage 28): the country's phone format where a fiction range exists (US, CA, GB, FR, AU).

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.