by elmacho39 · 9y ago · 0 comments
Most libraries I've seen which try to do form validation always lack in certain areas or force you to define your own validation, so I simply ended up adding an `isValid` method to my structs.
1. define input fields in html template of choice
2. validate form/struct/whatever and prepare errror messages per field
3. redisplay html with field-level errors to let user correct its input
step 3. is the interesting and missing in most examples of newer webframeworks