Validation Summary
Displays all ModelState errors in a callout (submit the form below with empty fields to see it)
Server-Side Validation — Form Controls
htmxRazor form controls with rhx-for binding and standalone validation messages
Client-Side Validation
HTML5 constraint validation with data-rhx-validate — validates before submit
Validation Summary — Variants
The summary supports all callout variants (showing static examples)
- Name is required.
- Email is required.
- Message must be at least 10 characters.
- Some optional fields are empty.
- Consider adding a phone number.
Standalone Validation Messages
rhx-validation-message can be placed anywhere, linked to a field by rhx-for
(Hidden placeholder — no errors for this field)