next-harm-reduction / encrypted-post

2 stars 4 forks source link

Add validation such that the form throws an error to the user if they try to submit without providing required information #8

Closed kylenstone closed 5 years ago

kylenstone commented 5 years ago

See original form for latest set of required fields.

Regex rules:

Notes:

Jamie comment slack 3-18-19: I did just enter some crap answers (i.e., alpha in numeric) and also left 90% of answers blank- but the form accepted and cleared. Is it possible to require answers/ for the user to get an error message and then be able to go back to ensure everything is complete? That functionality is critical.

kylenstone commented 5 years ago

https://github.com/schuyler1d/encrypted-post/commit/d5287c2f8d80f3ddf664498b3dc2f33dd507b2b3