Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Phone field rejects international formats: how to find and fix it

DLV-234Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Your form asks for a phone number, but the validation only accepts one national pattern. Typical culprits are a pattern like ^\d{10}$, a field set to numbers only, or a plugin set to US format. A visitor typing +44 20 7123 4567, 0049 30 123456 or (020) 7123 4567 sees an error, or the field silently strips characters and saves a broken number.

Why it costs you leads or sales

Visitors outside your main country are the ones who hit the error. Many will not guess the format you want. They give up, or type a fake number, which leaves your sales team with leads they cannot call. If the phone is required, the form cannot be submitted at all.

Where an international lead is lost
  1. Visitor opens formInterested, outside your home country
  2. Types +44 20 7123 4567Natural international format
  3. Validation errorPattern allows only 10 digits
  4. Lead notificationNever sent
  5. CRM recordNever created

The visitor is interested and fills in the form, but validation stops the submission.

A valid number is rejected and the lead never arrives

The form blocks the submission, so no email or CRM entry is created.

Try it: strict phone validationInteractive
Phone rule accepts only 10 national digits

Strict rule

Leads or data lost

Visitors with +44, +49 or spaced numbers see an error. Many leave and no lead is created.

Toggle the cause to see the effect on a visitor from abroad.

How to check if your site has it

Test the form yourself with several formats. Use a number you control, or a clearly fake one that you tell your team about, so nobody calls a stranger.

Formats to try in your phone field (use test numbers)
FormatExampleShould be accepted?
E.164 with plus+442071234567Yes
Plus with spaces+44 20 7123 4567Yes
Double-zero prefix0044 20 7123 4567Yes
National with brackets(020) 7123 4567Yes
With dashes+1-202-555-0100Yes
With extension text+49 30 123456 ext 12Ideally
Quick manual check
  • Try each format in the table and note which ones show an error.
  • Check the saved value in the notification email and the CRM: is the + still there?
  • Test on mobile, where the keyboard may be digits only and block +.
  • Look at the field's HTML: a pattern attribute, maxlength or type=number is a warning sign.
  • Try pasting a number with spaces.
Signs of a too-strict field in the page sourcehtml
<input type="number" name="phone" maxlength="10">
<input type="tel" name="phone" pattern="[0-9]{10}">

How to fix it

Fix the phone field
  1. Use the right input type

    Use type="tel", not type="number". Number inputs reject +, spaces and leading zeros.

  2. Remove country-specific limits

    Delete any pattern that fixes the length to 10 digits and any short maxlength. Allow digits, +, spaces, dashes, dots and brackets.

  3. Consider a country-code picker

    A library such as intl-tel-input adds a flag dropdown and validates by country. It can output E.164.

  4. Validate loosely

    Check for 7 to 15 digits after stripping punctuation. Do not reject a number only because it looks unfamiliar.

  5. Store in E.164

    Normalise on submit so your CRM and dialler get one consistent format.

Where to change it on your platform
  1. Contact Form 7

    Use the [tel* your-phone] tag and remove any custom regex. Check any add-on validation too.

  2. Other form plugins

    In the phone field settings, switch the format from US/Domestic to International (Gravity Forms: field Phone Format, choose International; WPForms: Phone field, Format Smart). Names vary by version.

Loose validation and E.164-style cleanupjavascript
function normalisePhone(input) {
  let v = input.trim();
  if (v.startsWith('00')) v = '+' + v.slice(2);
  const hasPlus = v.startsWith('+');
  const digits = v.replace(/\D/g, '');
  if (digits.length < 7 || digits.length > 15) return null;
  return (hasPlus ? '+' : '') + digits;
}
// normalisePhone('+44 20 7123 4567') -> '+442071234567'
Phone field before and after

Before

  • type=number or a 10-digit pattern
  • + and spaces rejected
  • Error message gives no hint
  • International visitors leave

After

  • type=tel with loose validation
  • Country picker or clear example
  • Numbers saved as E.164
  • Leads from any country reach the CRM

How to confirm it's fixed

Confirm the fix
  1. Re-run the format table

    Submit the form with every format listed earlier, using test numbers.

  2. Check the notification email

    Confirm the number arrived intact, including the +.

  3. Check the CRM record

    Confirm the phone is stored in the expected format and the dialler can use it.

  4. Test on mobile

    Make sure the keyboard allows + and the picker works with touch.

How to prevent it happening again

Prevention
  • Never use type=number for phone fields.
  • Retest the phone field after changing form plugins, themes or validation scripts.
  • Write a short validation rule in your form guidelines: accept 7 to 15 digits plus punctuation.
  • Show a helpful example under the field, such as +44 20 7123 4567.
  • Include an international number in every release test.

How FunnelGuard handles this

FunnelGuard detects this issue only partly. Its robot visitor runs your form on a schedule using a test phone number and checks that the submission goes through and the lead reaches the inbox and CRM. If your validation breaks for that number, or the form fails for another reason, you get an alert with a screenshot and a likely cause.

Questions people ask

Why does my form say my phone number is invalid?

The form's validation probably expects one national format, such as exactly 10 digits. Characters like +, spaces, dashes or brackets, or a different length, then fail. Remove the strict pattern or switch to an international phone field.

How do I make a form accept international phone numbers?

Use type="tel", remove country-specific patterns and length limits, and allow +, spaces, dashes and brackets. For best results add a country-code picker such as intl-tel-input and store the number in E.164 format.

What is E.164 phone format?

E.164 is the international standard for phone numbers: a +, the country code and the subscriber number, up to 15 digits with no spaces or punctuation. For example, +442071234567. CRMs and dialling tools usually expect it.

Why can't I type a plus sign in my phone field?

The field is probably type="number", or a script strips non-digits. Number inputs reject +. Change the field to type="tel" and remove any script that removes the plus.

How many digits should a phone number validation allow?

Allow 7 to 15 digits after removing spaces and punctuation. E.164 caps numbers at 15 digits, and valid numbers in some countries are short. A fixed 10-digit rule will reject valid numbers.

Should I make the phone field optional?

If your team does not need to call every lead, yes. A required phone field loses visitors who dislike sharing it or who hit format errors. If you need it, keep validation loose and explain why you ask.

Can FunnelGuard tell me if my phone field rejects international numbers?

Only partly. FunnelGuard submits your form with a test phone number and checks the lead arrives, so a broken field is often caught. It does not try many international formats, so test those by hand.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: Test phone only.

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.