igiveadamn / ccdb

critical care database
MIT License
0 stars 1 forks source link

Form validation #26

Open charlieharris1 opened 8 years ago

charlieharris1 commented 8 years ago

Current state:

screen shot 2016-08-07 at 10 51 36

We have a few options (I'm sure there are more) available:

a) The red cross icons and field borders should be visible from the time that the user views a form. This might be a little unsettling but it does the trick. b) The red cross icons should only be visible when a user has 'touched' a subform (this isn't ideal as it would mean that if they were unable to submit and hadn't touched one of the subforms there would be no visible indication of where the invalid data is). Similarly the fields within a form could only show the red border when they've been touched. c) We show the cross icon when a subform tab is touched and if the user attempt's to hit submit (this won't work at the moment because the submit button is disabled until the form data is valid). c) Let Rob tell us what he wants and leave it until then