Trust

Phone and email fields bring up the right keyboard

trust.form-field-wrong-type

Why this matters

A box expecting an email address should be marked as one. When it is not, a phone shows the ordinary letter keyboard rather than the one with the @ sign on it, and the browser does not check the address looks plausible before the form is sent. The same goes for a phone number, which should bring up the number pad. It is a single word in the markup and it is the most common reason a mobile enquiry form feels awkward to use.

Who fixes it

You can, usually

Roughly how long

15 minutes

Care needed

Low risk to change

How to fix it

Change `type="text"` to `type="email"` or `type="tel"` on the fields named here. Nothing else needs to change — every browser falls back to a plain text box if it does not understand the type, so there is no compatibility risk. Do not add pattern validation to a phone field at the same time: people write phone numbers in a great many valid ways.

On your platform

WordPress

Every form plugin has the right field type in its palette and it is usually a matter of having picked the wrong one. WPForms and Gravity Forms have dedicated Email and Phone fields — swap the field rather than editing the markup, because the plugin's own validation comes with it. In Contact Form 7 the tag itself is the type: `[email* your-email]` rather than `[text* your-email]`.

Shopify

In the theme's form section. Shopify's own themes use the right types on the contact form, so this generally means the section has been edited or the form comes from an app.

Drupal

Webform's element types include Email and Telephone; change the element type rather than the markup, and the validation follows.

Joomla

The forms extension's field type. Joomla's core contact form has fixed field types, so a wrongly typed field there means a template override is in play.

How we score it

Failing this check takes up to 12 points off your trust score. It is a fact about your site rather than a measurement, so it reads the same on every scan until you change something.

Does your site pass this one?

This check runs on every scan, along with the other 106. Free, no account, and you see the evidence for each result.

Check my site

Other trust checks

See all 107 checks