Form Field Date Input
A pre-composed form field that wraps a Date Input control with automatic label, helper text, and error message display. Inherits from FormFieldBase for EditContext integration, generated control IDs and ARIA wiring.
Default
The wrapper generates the control id and points the label's
for at the first segment in culture order, so clicking the label focuses the right box. See Date Input for the segment behaviour itself.Calendar Button and Bounds
The wrapper defaults
ShowCalendar to false, unlike the bare control — set it to true to get the picker button. MinDate and MaxDate are inclusive and also restrict the calendar.Read-Only, Disabled and Error
ErrorText makes the field invalid and hides the helper text, which is what you want for validation that happens outside an EditForm. ReadOnly keeps the segments focusable so the value can still be read out; Disabled also stops it being posted.EditForm Validation
Inside an
EditForm, messages from DataAnnotationsValidator appear in the error slot automatically. The control also adds its own message when the segments hold a partial or out-of-range date, so a half-typed entry blocks the submit.