Reading starts here
ChurnAtlas

3 phone field mistakes that reject valid kickoff contacts

Short answer. Three phone field errors on kickoff forms quietly reject correct numbers, with the checks and wording that stop them from reaching your validation log.

ChurnAtlas Editorial Team. How posts are made is set out in the editorial standards.

Published · Sources checked · 13 min read

  1. Inputs The order, the outcome the customer agreed to and the people on both sides.
  2. Decision What counts as a first result and who owns each step.
  3. Next action Write the milestone, its owner and its date on the account page.

The three phone field mistakes that reject valid kickoff contacts are a tight maxlength, a pattern that pins separators or grouping, and a country-code default. Each one looks harmless in review but rejects numbers that are perfectly valid, and the tel input gives you no automatic format check to fall back on — you own the constraint.

Key takeaways

  • Tight maxlength counts UTF-16 code units and fails validation when the entry exceeds it. Set your cap to the longest number a real customer could type, including country codes and extensions.
  • Over-specific pattern rejects correctly formatted numbers when it pins dashes, fixed grouping or length. Count digits instead.
  • Country default pre-fills a prefix or enforces local grouping. Let customers include their own code and normalize downstream.
  • minlength fails short entries, so set your floor to the shortest number that could still be real.
  • Before shipping, paste your longest and shortest plausible numbers, try the same number with spaces, dashes and none, and check that your label says what format you accept.

Why correct numbers still fail your phone field

You built the field. The customer typed a real number. Your form called it invalid anyway.

That gap between a correct number and a failed validation is what this post is about. It shows up on kickoff contacts, where a rejected number stalls an account before onboarding has even started. The customer sees a red message. Your team sees an empty record. Nobody can say what went wrong.

Phone numbers are hard because formats differ everywhere. MDN is blunt about why built-in validation does not help you here: unlike email or URL inputs, the tel input is not automatically checked against any format before submit, since telephone formats vary so widely around the world. You own the check. That is a design choice, not a limitation to work around.

Three mistakes are worth checking in any validation log. A length cap that is too tight. A pattern that is too specific. A country default that quietly excludes the rest of your customers.

This post walks through all three, starting with length. It gives you the specific attribute behavior behind each failure, a quick way to compare the two length attributes side by side, and a checklist you can run on your own field today. For a shorter companion, see phone number checks for kickoff forms.

Read your phone field like a validator does

Before you can fix the field, you need to see what the browser sees. An input is a string of characters with a few attached constraints. The validator reads those constraints and compares them against whatever the customer typed. There is no phone-book lookup. No country detection. No forgiveness.

Three attributes do most of the work on a tel input.

maxlength caps how many characters the customer may submit. The MDN page for the tel input describes it as the maximum string length, measured in UTF-16 code units, that the user can enter. The validator enforces this directly: the input fails constraint validation when the entered text is longer than the maxlength value. So a field with a tight maxlength will reject a full international number, every time, no matter how correct the digits are.

minlength sets the floor. It behaves the same way in reverse, failing validation when the entry falls short. The MDN example pairs a 20-character-wide box with a minimum of 9 characters and a maximum of 14. In that example, an entry of 8 characters or 16 characters counts as invalid.

pattern is the sharpest tool and the one most likely to bite you. When you supply a pattern, the entered value is reported as invalid unless it matches the pattern. MDN shows a pattern of xxx-xxx-xxxx and notes that 41-323-421 will not be accepted under it, because the value does not fit the shape. Patterns do not just reject bad input. They reject anything that is merely formatted differently from what you pictured.

One more behavior matters for kickoff flows. When the form posts, the value goes out as raw text. MDN shows the submitted payload for a tel input as, for example, telNo=+12125553151. Your downstream system receives the value as the customer typed it, and any formatting removal happens in your own code.

The two length attributes side by side

If you are deciding between the two, this table summarizes the direction each one pushes on the customer.

Attribute Rejects when the entry is… Typical failure on a kickoff form
maxlength longer than the limit, measured in UTF-16 code units An international number with a country code and extensions trimmed off
minlength shorter than the limit A local number entered without the area code

Mistake one: a length cap that is too tight

One phone field defect is a maxlength value chosen from habit rather than from the numbers your customers actually type. It sits quietly in the markup. It passes every test your team runs locally, because your team is in the same country and types the same shape of number. Then a customer from somewhere else hits it.

Here is what the failure looks like from the customer's side. They type a correct number. The field stops accepting characters partway through. The message says something unhelpful. They assume their number is wrong and try again, typing it shorter, which is exactly the wrong fix.

Here is what it looks like from your side. The validation log fills with entries where the only defect is length. The number is well-formed. It simply exceeds your cap. If you are debugging by looking at the value rather than the constraint that rejected it, you will chase the wrong thing for a long time.

The fix is straightforward once you see it. Set maxlength to the longest number you are willing to accept, not the longest number you happen to type yourself. If your customer base includes anyone who dials with a country code, that length grows. If you accept extensions, it grows again.

Pair the cap with a minlength that reflects the shortest number that could still be real. The MDN example's floor of 9 characters and ceiling of 14 characters is a useful reference shape, not a rule. Your floor should catch fat-fingered short entries. Your ceiling should never catch a valid number.

The second thing to watch is what your frontend does with the value as the customer types. Some fields auto-format, inserting dashes or parentheses on keystroke. If your auto-formatter writes more characters than the customer intended, and your maxlength counts all of them, the field can appear to reject a number that the customer never fully typed. The cap applies to the stored string, not to the digits the customer meant.

A quick test before you ship: take the longest number any real customer could plausibly enter, paste it into your field, and submit. If it fails, your cap is wrong. That test takes a minute. A wrong cap costs you accounts.

Illustrative example: a cap and a floor

Suppose a field has a maxlength of 14 and a minlength of 9. A customer types a number with a country code, a space and a dash, and the entry runs to 16 characters. The field rejects it, even though the number is correct. Raising the cap to 20 lets the same entry pass, and the floor of 9 still catches a short, mistyped entry. Re-run the same number after each change, so you can see which constraint moved.

Mistake two: a pattern that is too specific

A pattern attribute is a promise. You are telling the validator that every correct number looks exactly like the example you wrote down. That promise breaks the moment a customer formats their number differently, which is most of the time.

MDN's worked example makes the point clearly. With a pattern of xxx-xxx-xxxx, the value 41-323-421 is reported as invalid, because it does not match the shape the pattern describes. The digits may be perfectly fine. The separators or the grouping are not what the pattern expected.

Patterns go wrong in three ways on a kickoff phone field.

Pinned separators. You write dashes into the pattern and the customer types spaces, or nothing at all. The validator does not care that the digits line up. It cares that the characters in between do.

Fixed grouping. You group as three-three-four and the customer groups as one-one-one-one, or three-four-four, or one long run. Same digits, different shape, same rejection.

Assumed length baked into the shape. A pattern with a fixed number of character slots is a length rule wearing a disguise. It fails exactly like an over-tight maxlength, but it looks like a format rule in your code review.

The alternative is to pattern only what you are certain of. If you need to enforce a minimum number of digits, count digits rather than characters. If you need to strip formatting for your downstream system, do that in your own logic after the value passes, not by forcing the customer to type it your way.

The tel input will not do this work for you. What you gain by leaving format unchecked is a field that accepts every number your customers type. What you give up is automatic protection against nonsense. You can get that protection back with a digit count or a loose pattern, without pinning the separators.

A useful discipline is to review every pattern against a list of real numbers from your own customers. If any real number fails the pattern, the pattern is wrong, not the number.

Mistake three: a country default that excludes your base

The third mistake is a default. It is not a bad pattern or a tight cap. It is a silent assumption about where your customers are, written into the field before anyone typed anything.

One form of this is a country-code prefix pre-filled or implied by the field's helper text or validation logic. The customer is in a different country. They type their number in full. The field either rejects the leading code as extra characters, or it accepts the entry and then misinterprets the digits when your downstream system parses it.

A second form is local grouping enforced as a rule. The field assumes one grouping style because that is how numbers look where your team sits. A customer typing their number the way they always do triggers the same failure you saw with a pattern that pins separators.

Both forms share a root cause: a decision about format made for one audience and applied to all of them. When your field enforces a local format anyway, it undoes the reason the tel input leaves format unchecked.

The practical fix has three parts.

Do not pre-fill a country code. Let the customer include theirs if they want to, or leave it off if they do not. Your downstream system can decide how to interpret the number. The field should not. For how to store the result, see Customer phone fields: 2 ITU-T standards to apply.

Do not enforce local grouping. Accept digits with or without separators, in any grouping the customer prefers. Normalize after the value is accepted, not before.

State your expectation in the label or helper text. If you need an international format, say so where the customer can read it before they type. If you accept anything, say that instead. The point is to remove the guesswork, not to police the input.

When the field accepts broadly and you normalize downstream, a correct number reaches your record. That is the whole job of the phone field on a kickoff contact: get the number in, intact, so the next person can use it.

Where a rejection shows up in your log

You can usually tell which of the three mistakes caused a failure by reading the rejected value against the constraint that rejected it. The table below connects each symptom to its likely cause, including both length attributes.

Rejected entry looks like… Most likely cause First thing to check
Correct number, cut short or refused at the end maxlength too tight Your cap compared with the longest real number
Correct digits, odd separators or grouping pattern too specific Whether your pattern pins separators or grouping
Correct number with a leading code, refused Country assumption in the field Pre-filled prefix, helper text, or local grouping rule
Short local entry with no area code minlength too high Your floor compared with the shortest number that could be real

Read the row that matches your log, fix the constraint, and re-run the same numbers. The next section gives you a checklist for doing that on your own field.

A checklist you can run on your own phone field

Run this against the field as it exists today, not as you remember building it.

  • Paste the longest number a real customer could enter. It should pass.
  • Paste a short local number with no area code. Decide whether that should pass, and set your floor to match your answer.
  • Type the same number with spaces, with dashes, and with no separators. All three should pass.
  • Type a number with a country code in front. It should pass, unless your helper text says otherwise.
  • Submit a value with one character removed. It should fail only if the result drops below your minlength floor, and the message should say what was expected.
  • Submit a value with two extra characters. It should fail on length if it exceeds your cap, not on pattern.
  • Check your label and helper text. They should say what format you accept, in words a customer can act on.
  • Check the payload your server receives. It should carry the customer's number as typed, ready for you to normalize.

If any of these steps produces a surprise, you have found your defect. Fix the constraint, not the customer's number.

Two more things worth doing before you ship

The checklist catches the mechanics. Two softer decisions still affect whether a customer completes the field at all.

The first is labeling the field for assistive technology. If you work in production, you will need to do this to meet WCAG 2.2 success criterion 1.3.5 Identify input purpose, as the GOV.UK Design System notes on its names pattern. For a phone field that means marking the input's purpose so browsers and tools can identify it as a telephone number, and keeping the label tied to the input itself.

The second is deciding what happens after a rejection. A red border with no instruction leaves the customer guessing. A short message that names the problem — too short, too long, unexpected characters — gives them a fix they can apply. If your field rejects on length, say which limit they hit. If it rejects on pattern, say which characters were unexpected. The goal is one retry, not three. For more on wording, see onboarding form error messages.

Neither of these changes your constraints. They change what the customer understands about them, which is usually the difference between a completed kickoff and an abandoned one.

What depends on your customers

The right digit count and the country codes you should expect depend on your particular customer base, and that answer sits with whoever owns your customer records. The practical next step is to ask them for a sample of real numbers today, then set your length limits and any pattern against that sample rather than against a default you inherited.

Related guides: Kickoff form layout shift: 3 error message mistakes · Checkboxes or radio buttons: 2 controls for a kickoff form.

FAQ

Does the browser validate a tel input for me? No, the browser does not check a tel input's format before submit. You supply the constraints.

What units does maxlength count? UTF-16 code units, not visual characters. For ordinary digits and separators the two are the same, but the distinction matters if your field ever holds unusual characters.

Is a pattern a good way to enforce formatting? Only if you are certain every correct number matches it.

Does my server receive the number as typed? Yes. The submitted value goes out as raw text, so your downstream system sees exactly what the customer entered, ready for you to normalize.

What is the fastest way to find my field's defect? Paste a real long number and a real short number into the field and submit both. Whichever fails tells you whether your cap or your floor is wrong.

Do I need to worry about accessibility labeling on a phone field? If you work in production, yes, to meet the WCAG criterion referenced above. Mark the input's purpose so tools can identify it as a telephone number.

Sources

Sources checked

Limits of this post

This post is general operational information, not legal advice about notice periods or renewal clauses. It does not promise that any method keeps a customer. Software can get a fact wrong, so open the sources before you act.