Community articles
Designing a one-field web tool that works on mobile
A form with one field looks simple on a desktop. On a phone, the field has to share a small screen with the submit button, instructions, and eventually…
By IGVIEWR · · 2 min read
0

A form with one field looks simple on a desktop. On a phone, the field has to share a small screen with the submit button, instructions, and eventually the on-screen keyboard. Here are four checks I’d make before shipping that form.
1. Let the field use the space it needs. Give the form a comfortable maximum width on desktop. On a narrow screen, stack the action below the input instead of squeezing both into one row. Test with a long username or URL and at a larger browser text size. The page should not scroll sideways.
2. Keep keyboard focus visible. Try the form with Tab, Shift+Tab, and Enter. The focus indicator should be easy to spot, and the page shouldn’t jump unexpectedly when the phone keyboard opens. Avoid automatically focusing the field on page load; let users read the instructions first.
3. Put the error next to the field. A useful error tells the reader what to change. “Enter a username without spaces” is more helpful than “Invalid input.” Keep what they typed so they can correct it. Associate the error with the input so assistive technology can read it when the user returns to the field.
4. Give the input a visible label. A placeholder can show an example, but it disappears as soon as someone starts typing. Use a real label and keep the most important restriction nearby. For a public-content viewer, people should know before submitting that private content isn’t supported.
For context, we run a public Instagram lookup tool: IGViewr