Skip to content

[Bug]: forms 422 for a field that is not on the page shows only "Correct the highlighted fields" #739

Closed

Description

@jimhoyd

Runtime revision and environment

Found while building form-records (#529); existing forms behaviour, not introduced by it. Not reproduced separately end to end.

Minimal reproduction

Submit a forms (or form-records edit) page with an extra field that the page does not render, for example a crafted POST including a non-editable field. Admission correctly refuses it with 422 and an error keyed by that field name. But the renderer only places errors next to rendered fields, so the user sees only the generic alert "Correct the highlighted fields", and nothing is highlighted.

Relevant output

The generic alert, with no field message. Suggested fix: when the error map contains keys that are not rendered fields, list them in the alert (by field label if declared, else a generic "this form received a field it does not accept"), without echoing submitted values.

Activity

  1. added
    bug
    extension
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions