You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gunndabad
changed the title
Field name used for date input parse errors should be overridable
Name used for date input parse errors should be overridable
Oct 14, 2024
When date input parsing encounters an error it produces an error using
ModelMetadata
'sDisplayName
https://github.com/gunndabad/govuk-frontend-aspnetcore/blob/main/src/GovUk.Frontend.AspNetCore/ModelBinding/DateInputModelConverterModelBinder.cs#L100This is problematic when the display name is something like 'Enter start date' as we get error messages like 'Enter start date must be a real date'.
There should be a way to override the name used for producing parse errors e.g.
The text was updated successfully, but these errors were encountered: