City-of-Bloomington/inRoads

Invalid dates reported as missing required fields

Opened this issue · 0 comments

If you type an invalid date into the form, it gets wiped and the form reloads with a "missingRequiredFields" error, instead of an "invalidDate" error.

This is because the controller throws away any invalid dates during input parsing. Actual form validation doesn't occur until during save(). But by then, whatever garbage the user typed is long gone.