Typing on a phone is the real cost of a form
Every extra tap on a small keyboard is a reason to quit. A contact form that makes a patient type a full name, an email address and a phone number from scratch, using the wrong keyboard for each, loses people who would have filled in a form that did it for them.
Phones can fill those boxes automatically, but only when the form says what each box is. The W3C's Identify Input Purpose criterion, which we read before writing, asks that the purpose of fields collecting information about the user can be determined by software. Its example is a contact form that names the purpose of name, street, city, telephone and email fields, which lets the browser fill them from saved values.
The attribute that does it
The attribute is called autocomplete, and it takes a fixed list of values. The W3C page shows several, including name, given-name, family-name and username. It explains that this is finer than the field's type, because it can say which kind of name is expected. Standard values also exist for email and for telephone numbers.
| Form box | Autocomplete value and input type |
|---|---|
| Full name | autocomplete name, input type text |
| autocomplete email, input type email | |
| Phone | autocomplete tel, input type tel |
| Message | No autocomplete value needed, a plain multi-line text area |
Input type is the second half. An email box with type email shows a keyboard with the @ sign handy, and a phone box with type tel opens the number pad. These two changes cost a designer a few minutes and spare the patient a lot of switching between keyboards.
What not to autofill
- Do not ask for date of birth, address or insurance numbers on a first contact form unless you truly need them. Fewer fields mean fewer taps.
- Do not turn autocomplete off on the name, email and phone boxes. Some themes disable it by default, which defeats the point.
- Do not add a field for health details. The form is a contact route, not an intake record.
Our guide on online appointment request form fields and the one for counseling first contact forms explain which boxes belong on the form.
A five-minute test on real phones
- 1Use a phone that has your own contact details saved in its browser or keyboard. Open the contact page.
- 2Tap the name box. The phone should offer to fill the name, and the email and phone boxes should follow.
- 3Tap the phone box and check that a number pad appears. Tap the email box and check for the at sign.
- 4Repeat on a second type of phone, since iPhones and Android phones offer different suggestions.
- 5Stop before pressing Send. Never submit the live form to test, as it would reach the office inbox.
If the boxes do not fill
Open the page source and look at the input tags. If the autocomplete value is missing, send your designer the table above. If it is present and the phone still does not fill, the phone's own saved details may be missing, which is a setting on the phone rather than your site.
Beyond autofill, make the labels readable, as covered in our guide on accessible intake forms for patients with low vision, and keep the confirmation clear with a thank-you page that your tracking can count. Make sure each box is also easy to see, since pale form borders can make a field vanish for a patient with low vision. Autofill works best when each field also carries a visible label that does not disappear, as described in visible labels above every field on a contact form. Leave the Send button active as well, since a grayed-out submit button explains how a gray button with no reason leaves a patient stuck.
Frequently asked questions
What is autocomplete on a form?
It is an attribute that tells the browser what kind of information a box expects, so the browser can offer saved details. It uses a fixed list of values such as name, email and tel.
Does autofill share patient data with us?
No. The browser fills the box from details the visitor saved on their own device. Nothing is sent to your site until the visitor presses Send.
Why does the phone number need its own keyboard?
A number pad avoids switching between letters and digits, which saves taps and mistakes. Setting the input type to tel opens it.
Will this raise our number of form leads?
We cannot promise a figure. Compare completed forms in your monthly report for the month before and after, and keep a note of any other change made that month.
Does this affect accessibility?
Yes. The W3C says declaring the purpose of each field helps people with certain cognitive disabilities, and assistive tools can show familiar icons beside the fields.
Sources
- W3C Web Accessibility Initiative — Understanding Success Criterion 1.3.5: Identify Input Purpose