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.
- Ad or search clickVisitor from Germany lands on your page
- Fills in formEnters +49 151 23456789
- Phone validationRule expects 10 US digits and shows an error
- Form submittedNever happens
- Lead in CRMNever created
The visitor does everything right, but the phone rule blocks the 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.
| Format | What to type | Should be accepted? |
|---|---|---|
| US | (555) 123-4567 | Yes |
| UK | +44 20 7946 0000 | Yes |
| Germany | +49 151 23456789 | Yes |
| With leading 00 | 0044 20 7946 0000 | Ideally yes |
| With spaces or dashes | +33 1 23 45 67 89 | Yes |
- 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=teland mask scripts. - Check the thank-you page and the CRM entry to see what was actually saved.
<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.
Find the rule
Look in the form settings, theme or plugin for a mask, pattern, max length or phone validation option.
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.
Consider a country selector
A flag dropdown that sets the country code helps visitors and gives you cleaner data.
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.
Make the field optional if you can
If you do not need to call everyone, an optional phone field removes the barrier entirely.
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.
Check for pattern attributes
In Contact Form 7, a
telfield with custom HTML may carry a pattern. Remove it or widen it.
Theme forms
In the theme code editor, search the form section for
pattern=ormaxlengthon the phone input and relax them. Exact files depend on your theme.Third-party form apps
If you use a form or popup app, change the phone field type or validation in that app's field settings.
Use a standard input
Select the phone input in the Designer, set the type to Telephone and remove any custom pattern added through the custom attributes panel.
Edit the phone element
In the form or survey builder, open the Phone field and check its country or format options. Allow international numbers instead of one fixed country.
Edit the form field
In the Wix form settings, select the phone field and check its validation options. Allow other formats or make it optional.
Use a standard phone field
In the form block, use the Phone field and avoid custom code that restricts digits. Squarespace's built-in field does not add a country mask by itself.
Loosen the pattern
Replace the fixed pattern with a permissive one, and optionally add a country selector library such as intl-tel-input.
<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"><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>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
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
- 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.
- 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.
Related issues
- PRF-361Address form requires US-style state/ZIP for other countriesFix guide
- PRF-362Postal code validation rejects valid foreign codesFix guide
- PRF-363Name fields reject accents, apostrophes or non-Latin scriptsFix guide
- PRF-353Untranslated form labels/errors on translated pageFix guide
- PRF-357Prices shown with wrong decimal/thousand separatorsFix guide
- PRF-348Visitor sees wrong language version (geo/browser redirect wrong)Fix guide