# The search field

> People look for a box to type in, and a hidden search, or one emptied on the results page, slows them down.

Area: Search. Evidence behind the answer: Weak. Last checked November 12, 2026.
Page: https://uxreference.com/search/field

## The answer

Show an open search field, keep the query in it on the results page, and search the whole site.

- **Moderate.** Where search is a main way in and there’s room, show an open search box, not just an icon. (https://uxreference.com/search/field#rule-2)
- **Moderate.** On the results page, keep the search terms in the box so people can change them. (https://uxreference.com/search/field#rule-3)
- **Weak.** Search the whole site by default. If you search only part of it, say which part. (https://uxreference.com/search/field#rule-6)

## The problem

People who want to search look for a box to type in, and a field that is hidden, short or emptied on the results page gets in their way.

## How to decide

None. The sources do not describe more than one correct practice that depends on context.

## Every rule

Each rule has a grade: Settled (required by WCAG AA or law, or replicated research), Strong, Moderate, Weak, or Unsettled (use the stated default until the evidence settles).

#### Rule 1. Settled, WCAG AA

Give the search field a label that software can read.

- Applies when: Always.
- Based on: Standard or law
- Principle: Work for everyone

Why: WCAG 2.2 level A. Reopened and checked. The ARIA guide adds a search landmark around the field, which is guidance.

Sources: [Understanding SC 3.3.2 Labels or Instructions](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html); [Understanding SC 1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html); [Search Landmark example (ARIA Authoring Practices Guide)](https://w3.org/WAI/ARIA/apg/patterns/landmarks/examples/search.html)

Link: https://uxreference.com/search/field#rule-1

#### Rule 2. Moderate

Where search is a main way into the site and there is room, show an open field to type in, not only a control that reveals one.

- Applies when: On devices with a pointer and keyboard.
- Based on: Practitioner research
- Depends on: Device and screen
- Principle: Recognition over recall

Why: NN/g and Baymard report people missing search that is not an open field, without numbers. USWDS and NHS accept a reveal control on small screens, which is why the rule is scoped. Rated 3.

Sources: [Search - Visible and Simple (Alertbox)](https://www.nngroup.com/articles/search-visible-and-simple/); [Search field design - prominence of the e-commerce search field](https://baymard.com/blog/search-field-design); [Search bar UI guidance (persisting query, placeholder, scope, width, submit)](https://baymard.com/blog/search-bar-ui); [Search component](https://designsystem.digital.gov/components/search/); [Search input component](https://service-manual.nhs.uk/design-system/components/search-input)

Link: https://uxreference.com/search/field#rule-2

#### Rule 3. Moderate

On the results page, keep the query in the field so that it can be changed.

- Applies when: Always.
- Based on: Practitioner research
- Principle: Keep people in control

Why: Baymard, NN/g and GOV.UK agree. Rated 3.

Sources: [Search bar UI guidance (persisting query, placeholder, scope, width, submit)](https://baymard.com/blog/search-bar-ui); [Search - Visible and Simple (Alertbox)](https://www.nngroup.com/articles/search-visible-and-simple/); [Search component (GOV.UK publishing component guide)](https://components.publishing.service.gov.uk/component-guide/search)

Link: https://uxreference.com/search/field#rule-3

#### Rule 4. Moderate

Let people submit with the Enter key and with a visible control.

- Applies when: Always.
- Based on: Convention
- Principle: Let practiced people go faster

Why: Baymard reports confusion on phones where one of the two was missing, though most testers submitted from the keyboard. Rated 3.

Sources: [Mobile search - include a submit button next to the field](https://baymard.com/blog/mobile-search-submit-button); [Search component](https://designsystem.digital.gov/components/search/); [Search input component](https://service-manual.nhs.uk/design-system/components/search-input)

Link: https://uxreference.com/search/field#rule-4

#### Rule 5. Weak

Make the field long enough to show a typical query in full.

- Applies when: Always.
- Based on: Research
- Principle: Make controls match their effects

Why: One 19-student experiment found a longer field drew longer queries, at borderline significance, with no measure of success. Rated 2.

Sources: [Verbosity and Interface Design](https://core.ac.uk/download/11434001.pdf); [Search - Visible and Simple (Alertbox)](https://www.nngroup.com/articles/search-visible-and-simple/); [Search bar UI guidance (persisting query, placeholder, scope, width, submit)](https://baymard.com/blog/search-bar-ui)

Link: https://uxreference.com/search/field#rule-5

#### Rule 6. Weak

Search the whole site by default. If the search covers only part of it, say which part.

- Applies when: Always.
- Based on: Practitioner research
- Principle: Keep people informed

Why: NN/g warns that people overlook a narrowed scope; Baymard sees value in a scope chooser on very large catalogs. Conflicting detail, so 2.

Sources: [Limiting Search Boundaries (scoped search)](https://www.nngroup.com/articles/scoped-search/); [Search scope - letting users search within a category](https://baymard.com/blog/search-scope)

Link: https://uxreference.com/search/field#rule-6

## Accessibility requirements

- WCAG 2.2, 3.3.2 and 1.3.1 (A): a label exposed in code; a visible label may be omitted only where the purpose is evident (see [Labels, rule 6](https://uxreference.com/forms/labels#rule-6)). (https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html)
- WAI-ARIA Authoring Practices, search landmark: guidance. (https://w3.org/WAI/ARIA/apg/patterns/landmarks/examples/search.html)

## Common mistakes

- A search field that empties itself on the results page ([rule 3](https://uxreference.com/search/field#rule-3)).
- A narrowed search scope that is not stated ([rule 6](https://uxreference.com/search/field#rule-6)).

## Still open

- No published online experiment on the search field itself was found; one third-party claim about a company's test was skipped.
- Reveal control or open field on small screens: sources differ.
- Scope choosers: sources differ.

## Related problems

- [Query suggestions](https://uxreference.com/search/suggestions): Put the most likely suggestions first, and keep what people typed in the field.
- [Results pages](https://uxreference.com/search/results): Put the best match first, and make each summary say what the item really is.
- [Labels](https://uxreference.com/forms/labels): Give every field a visible label that stays in place while people type.
- [Field width as a hint](https://uxreference.com/forms/field-width): Size each field to the length of the answer you expect.

## Sources

- [Understanding SC 3.3.2 Labels or Instructions](https://www.w3.org/WAI/WCAG22/Understanding/labels-or-instructions.html). W3C WAI, n.d., normative standard (Understanding document).
- [Understanding SC 1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships.html). W3C WAI, 2026, normative standard (Understanding document).
- [Search Landmark example (ARIA Authoring Practices Guide)](https://w3.org/WAI/ARIA/apg/patterns/landmarks/examples/search.html). W3C WAI, 2023, normative-adjacent authoring example.
- [Search - Visible and Simple (Alertbox)](https://www.nngroup.com/articles/search-visible-and-simple/). Jakob Nielsen, Nielsen Norman Group, 2001, practitioner article reporting usability studies (search study, e-commerce study, intranet study) without full protocol.
- [Search field design - prominence of the e-commerce search field](https://baymard.com/blog/search-field-design). Baymard Institute, 2014, usability testing plus benchmark of 50 top US e-commerce sites; details not given on page.
- [Search bar UI guidance (persisting query, placeholder, scope, width, submit)](https://baymard.com/blog/search-bar-ui). Baymard Institute, 2026, practitioner guidance drawing on Baymard testing; no data on page.
- [Search component](https://designsystem.digital.gov/components/search/). U.S. Web Design System (GSA), 2026, component documentation.
- [Search input component](https://service-manual.nhs.uk/design-system/components/search-input). NHS digital service manual, n.d., component documentation.
- [Search component (GOV.UK publishing component guide)](https://components.publishing.service.gov.uk/component-guide/search). GOV.UK publishing, n.d., component documentation.
- [Mobile search - include a submit button next to the field](https://baymard.com/blog/mobile-search-submit-button). Sally Collins, Baymard Institute, 2021, mobile usability testing with recorded sessions plus site benchmark.
- [Verbosity and Interface Design](https://core.ac.uk/download/11434001.pdf). Kristofer Franzen and Jussi Karlgren, SICS Technical Report T2000:04, 2000, between-subjects lab experiment (experiment run 1997).
- [Limiting Search Boundaries (scoped search)](https://www.nngroup.com/articles/scoped-search/). Katie Sherwin, Nielsen Norman Group, 2015, expert article with site examples; no protocol stated.
- [Search scope - letting users search within a category](https://baymard.com/blog/search-scope). Christian Holst, Baymard Institute, 2014, large e-commerce search usability study plus benchmark of 50 top US sites.

---
From Solved Problems in UX by Athen Pellicci, an evidence-graded reference of web interface problems. CC BY 4.0. https://uxreference.com/
