BCQuality rule · uiAL Developmentofficial - Microsoftderived - from the source, no model text

ShowCaption on editable fields

ShowCaption must remain true (the default) on editable fields unless the field matches one of the officially supported "magic patterns". Fields are editable by default.

Rule on GitHub · microsoft layer · ui · BC all · tier official · derived

Description

ShowCaption must remain true (the default) on editable fields unless the field matches one of the officially supported “magic patterns”. Fields are editable by default. Setting ShowCaption = false on an editable field is almost always an accessibility bug: without a visible caption, screen reader users lose the label that identifies the field, and sighted users lose a visual cue.

A field whose Editable property is a Boolean expression (e.g. Editable = IsEditable) is dynamically editable and must be treated as a form field — ShowCaption = false on such a field is also a violation.

Best Practice

Leave ShowCaption at its default on editable fields. If a caption would be visually redundant, rely on one of the documented magic patterns (group-labeled first child, repeater column, PromptDialog prompt input) rather than removing the caption.

See sample: show-caption-on-editable-fields.good.al.

Anti Pattern

The InstructionalText property on a field renders as HTML placeholder text and is not a substitute for a caption — it disappears once the user types and is not reliably announced by screen readers.

See sample: show-caption-on-editable-fields.bad.al.

Examples

Changed by


From microsoft/BCQuality at a4593a1, MIT License, Copyright (c) 2026 Microsoft Corporation (license).