-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add form validation for create/edit views #41
Comments
I've got a preliminary spike of the form validation framework that seems to work well for licenses. Now we just need a canonical list of validators for each field and I can roll it out across all the document types. Here's my guess of what validators should look like, based on the existing data: All
Books
Control Monument Maps
Surplus Parcels
Deep Tunnels:
Dossiers
Easements
Flat Drawings
Index Cards
Licenses
Project files
Rights of way
Surveys
Titles
|
Found some discrepancies with the data we have and the validation requirements listed here, so I just wanted to double check that these were still what we're going for or if some need to be re-evaluated. Flat Drawings and Index Cards
Index Cards
Surveys
|
We're going to validate the fields that we have no questions and revisit the other fields in another PR. |
We've shied away from form validation so far because the data quality wasn't good enough, but now that active users are starting to use the application we should add it in to make sure that new data meets the standard.
For Add views, we can drop this validation in easily. For edit views, we'll need a custom validator to check if there's pre-existing data for the record and skip the validation if so. (Remember to turn off JavaScript validation in these cases.)
The text was updated successfully, but these errors were encountered: