- Issue created by @sime
In the work on β¨ Allow end date to be optional Needs review we saw some problems with DateRange validation UX. At the moment the error "This value should not be null", and the way the field errors are highlighted, is confusing. This ticket can be worked on in isolation of β¨ Allow end date to be optional Needs review but it's probably easier as a follow up.
Current: "This value should not be null" error, and both fields are highlighted red.
Expected: "You must add a start date" or "You must add both dates" and only the start date should be highlighted red.
At the moment this gets a NotNull constraint and if you don't enter either date you get a more user friendly HTML5 validation. I think the daterange module should have it's own specialised constraint, especially as we make the end date (and later start date) optional.
If β¨ Allow end date to be optional Needs review is finished it should cover optional end dates.
Active
11.0 π₯
Last updated
Makes Drupal easier to use. Preferred over UX, D7UX, etc.