-
Notifications
You must be signed in to change notification settings - Fork 17
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
Partial form validations #66
Comments
WTForms provides two processing methods for form fields: This is a problem for fields like Baseframe's RadioMatrixField, since they override |
Since we've now adopted Parsley.js for client-side validations (#57), Parsley's Remote plugin may help. It's meant for submitting a field at a time for validations. |
We should integrate view-level support in CrudView (#80). |
baseframe.forms.Form
should provide two additional helper methods:validate_partial
(andvalidate_on_submit_partial
) andpopulate_obj_partial
that validate and populate only the fields present inrequest.form
(or submitted form).This will allow building views with inline edit, submitting only whatever has changed while reusing existing forms.
Since this does mess with forms that override
validate
to do full form validation, or have custom cross-field validation (like the WTFormsEqualTo
validator for password fields), there should be a mechanism to protect them:The text was updated successfully, but these errors were encountered: