Autocomplete

Added · Last updated

… in assistance escalation or inside a form field, a static guess from good defaults has given way to the actor typing their own value, or a field draws from a set too large to show in full. This forms the reactive tier of assisted task completion.

Problem

When a field draws from a large or unfamiliar set of values, asking the actor to type from memory invites spelling errors and dead ends, while showing the whole list up front crowds the interface.

Where the valid answers are few enough to display in full, typing to narrow adds a step the actor does not need. When the set does warrant narrowing, the actor’s own recent and frequent entries often beat algorithmic rankings and deserve a place near the top.

A subtler boundary lies between narrowing—filtering a known index—and expanding—proposing related or trending terms the actor has not thought of. Narrowing is looked up and expanding is inferred, yet the same dropdown can cross from one to the other without changing shape, hiding the crossing unless inferred candidates are marked.

Solution

Display a narrowing list of looked-up candidates beside the input as the actor types, placing exact, recent, and frequent matches first. Keep the actor’s typed text intact until they commit a candidate, and label any inferred or expanded terms so the actor can tell what exists in the index from what the system is proposing.

Make clear whether the actor may submit free text or must pick from the list; when that boundary is hidden, typed values are either silently discarded or rejected only on submission.

Continuation

When the field requires a value from a fixed set too large to display up front, pair autocomplete with bounded choice to turn the list into a searchable picker. Where the system already holds the actor's value in a profile, earlier session, or browser record, let autofill supply it before typing begins. Pair the same narrowing list with searching in a query box, with filtering inside a filter clause, and with a command menu to locate actions and navigation targets. Where candidates shift from matching a known index to proposing related or inferred options, treat them as a suggestion; and where the continuation must be generated rather than looked up, hand over to AI completion…

All connections
Precedes
AI completion — Where candidates shift from matching a known index to proposing related or inferred options, treat them as a suggestion; and where the continuation must be generated rather than looked up, hand over to AI completion
Enacts
Learnability — autocomplete candidates show what valid options and vocabulary exist as the actor types
Complements
Autofill — Where the system already holds the actor's value in a profile, earlier session, or browser record, let autofill supply it before typing begins.
Bounded choice — When the field requires a value from a fixed set too large to display up front, pair autocomplete with bounded choice to turn the list into a searchable picker.
Assisted task completion — This forms the reactive tier of assisted task completion.
Suggestion
Searching, command menu, filtering — Pair the same narrowing list with searching in a query box, with filtering inside a filter clause, and with a command menu to locate actions and navigation targets.
Recents — “Feed recent entries into autocomplete so the actor's own recent items rank above system guesses.”
Tagging — “Pair the tag input with autocomplete over existing labels so actors reuse established terms while staying free to coin new ones.”
Preceded by
Good defaults — In assistance escalation or inside a form field, a static guess from good defaults has given way to the actor typing their own value, or a field draws from a set too large to show in full.
Hosted by
Form
Appears in
Composing views: Adding search, step 1
Assistance escalation: Filling in what is known, step 2
Related components
  • Input — the text-field primitive that autocomplete builds on
  • Combobox — the control that pairs the text input with a narrowing candidate list and keyboard selection

Resources & references