Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Wrong mobile keyboard on form fields: set type and inputmode

PRF-166Medium impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

On a phone, the browser decides which keyboard to show based on the field. An <input type="email"> gets a keyboard with @ and . close to hand. An <input type="tel"> gets a number pad. A plain <input type="text"> gets the standard letter keyboard.

The issue is when a field that expects an email, phone number, postcode, card number or quantity is built as a plain text input. It happens often with page builders, custom-styled forms and fields that were switched to type="text" to avoid browser validation.

inputmode is a second attribute that only controls the keyboard, not validation. Values include numeric, decimal, tel, email, url and search. It is useful when you need the keyboard but not the browser's own validation rules.

Why it costs you leads or sales

Typing a phone number on a letter keyboard means switching to the numbers layer first. Typing an email means finding @. Each extra tap is friction on the one step where you want the visitor to finish. The result is more typos, more abandoned forms and more leads with a wrong number or email that you can never contact.

The impact is usually medium rather than severe: the form still works, it is just slower and less accurate. On mobile-heavy traffic from ads, it adds up.

Where the wrong keyboard hurts
  1. Ad clickVisitor lands on mobile
  2. Open formTaps the phone field
  3. Letter keyboardNo number pad or @ key
  4. Typos or exitWrong number, or form abandoned

The form still submits, but friction and typos build up at the contact fields.

Form completion on mobileExample numbers
Form completion on mobile (example)Text input (before): 42 %; Correct type (after): 48 %018374248Text input (before)Correct type (after)%

Example: illustrative numbers only, showing how a better keyboard could lift completion.

How to check if your site has it

Check each field on a real phone
  1. Open the form on your phone

    Use both an iPhone and an Android phone if you can. Tap each field in turn.

  2. Watch the keyboard

    Email should show @. Phone should show a number pad. Postcode, quantity and card-like numbers should show digits.

  3. Inspect the HTML

    In desktop Chrome, right-click the field, choose Inspect and look at the type and inputmode attributes. Use the device toolbar to view the page at phone size.

  4. List the mismatches

    Note every field whose type does not match the data it asks for.

Which attribute to use for common fields
FieldRecommended markupKeyboard shown
Emailtype="email"Letters with @ and .
Phonetype="tel"Number pad
Postcode (numeric, e.g. US ZIP)inputmode="numeric"Number pad
Quantity or agetype="number" or inputmode="numeric"Number pad
Price or amountinputmode="decimal"Numbers with decimal point
Websitetype="url"Letters with / and .com

How to fix it

The right fix depends on how the form is built. Most builders have a field type setting. If not, you add the attribute in the HTML.

Correct inputs for email, phone and numeric fieldshtml
<input type="email" name="email" autocomplete="email" required>
<input type="tel" name="phone" autocomplete="tel">
<input type="text" name="zip" inputmode="numeric" autocomplete="postal-code">
Set the field type by platform
  1. Use the right field type

    In Contact Form 7 use [email* your-email] and [tel your-phone]. In Gravity Forms, Forminator, WPForms and Fluent Forms, add the Email and Phone field types rather than Single Line Text.

  2. Add inputmode if needed

    For numeric text fields, add a custom attribute if your form plugin supports it, or use a small script (see Custom code).

Set attributes on existing inputs (last resort)javascript
document.querySelectorAll('input[name*="email" i]').forEach(function (el) { el.type = 'email'; });
document.querySelectorAll('input[name*="phone" i]').forEach(function (el) { el.type = 'tel'; });
document.querySelectorAll('input[name*="zip" i]').forEach(function (el) { el.setAttribute('inputmode', 'numeric'); });
Phone field markup

Before

  • type="text" on phone and email
  • Letter keyboard on every field
  • Visitors switch layers to type digits

After

  • type="email" and type="tel"
  • Matching keyboard appears on tap
  • Fewer typos in phone and email

How to confirm it's fixed

After the change
  • Email field shows a keyboard with @ on iPhone and Android
  • Phone field shows a number pad on both
  • Numeric fields such as postcode or quantity show digits
  • The form still validates and submits
  • A test submission reaches your inbox or CRM with the correct values
  • Autofill still offers saved email and phone

How to prevent it happening again

Habits that keep it fixed
  • Pick Email and Phone field types from the builder, never generic text
  • Add a mobile keyboard check to your launch checklist for every new form
  • Re-test after switching form plugins, themes or builders
  • Re-test embedded third-party forms after they update
  • Pair with autocomplete attributes so autofill works too

How FunnelGuard handles this

FunnelGuard does not check this yet. Which keyboard a field triggers is a possible future check, so it is not something FunnelGuard reports today.

What FunnelGuard does cover nearby: a robot visitor runs your real lead form on a schedule, checks each step, and confirms that a test lead reaches your inbox and CRM. That helps you notice if a form change breaks submission, but it will not tell you the wrong keyboard is showing.

To watch for it yourself, test each new or edited form on a real iPhone and Android phone, and inspect the type and inputmode attributes in your browser's developer tools. A free read-only website audit is also available from FunnelGuard, though it is not a keyboard check.

FAQ

Questions people ask

Why is my phone number field showing a letter keyboard on mobile?

The field is most likely a plain text input. Phones choose the keyboard from the type and inputmode attributes, so a text input gets letters. Change it to type="tel" or add inputmode="tel".

How do I show the number pad for a form field?

Use type="tel" for phone numbers, or inputmode="numeric" for digits-only values like postcodes and quantities. In most builders you pick a Phone or Number field type instead of editing HTML.

What is the difference between type="email" and inputmode="email"?

type="email" changes the keyboard and also turns on the browser's email validation. inputmode="email" only changes the keyboard and does not validate. Most forms should use type="email".

Should I use type="number" for a postcode or card number?

No. type="number" can drop leading zeros and adds spinner arrows. Use type="text" with inputmode="numeric" so you get the number pad without those side effects.

How do I fix the wrong keyboard in Contact Form 7 or WordPress forms?

In Contact Form 7, use the [email] and [tel] tags instead of [text]. In other plugins, add Email and Phone field types rather than Single Line Text.

Does the wrong keyboard stop the form from working?

No, the form still submits. It just makes typing slower and more error-prone, which can lower completion and produce wrong contact details.

Does FunnelGuard detect the wrong mobile keyboard?

Not yet. It is a possible future check. FunnelGuard does run your real lead form on a schedule and confirm test leads arrive, so a broken submission would be noticed, but keyboard type should be tested by hand on a phone.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.