Summary fields
<form id="summary-form">
<input name="fullName" required />
<input name="email" type="email" required />
<input name="postcode" required minlength="4" />
</form>
Summary demo
Focusable summary region with field-labelled links that send users back to invalid fields.
Back to demo galleryThis demo imports the error summary addon explicitly. Submit empty, correct one linked field, and leave it to see that isolated validation removes only that stale summary entry.
<form id="summary-form">
<input name="fullName" required />
<input name="email" type="email" required />
<input name="postcode" required minlength="4" />
</form>
import { A11yFormValidator } from "./dist/index.js";
import { createErrorSummaryAddon } from "./dist/addons/error-summary.js";
import { createNoSummaryPreset } from "./dist/presets/no-summary.js";
const form = document.getElementById("summary-form");
new A11yFormValidator(form, {
...createNoSummaryPreset(),
focusOnError: "summary",
addons: [createErrorSummaryAddon()]
});