Ticket #13741 (new Bug)
Inline validation sends ajax request with BadRequest exception when no data-fieldname on field/widget
Reported by: | seanupton | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Unknown | Version: | 4.3 |
Keywords: | Cc: |
Description (last modified by seanupton) (diff)
schema.Bool fields cause inline_validation.js to send AJAX request with null fieldname.
I do not think it necessary to address this with a widget change in plone.app.z3cform, but we should -- on the robustness principle -- make it so that:
(1) JavaScript: z3cform_validate_field() should not send AJAX request when fname is null, empty, or undefined.
(2) InlineValidationView.call() should ignore requests with empty fname, and return the default JSON message.
Additional reference: #13567 is similar, tries to solve problem one-off on a different widget with same problem.
Change History
comment:2 Changed 3 years ago by seanupton
- Description modified (diff)
We don't want removal of blur on checkbox, as some checkboxes might have a must-be-true contstraint, etc.
comment:3 Changed 3 years ago by seanupton
See #13742 for addendum to this that should not block completing this ticket.
comment:4 Changed 3 years ago by seanupton
For the second item in the description, https://github.com/plone/plone.app.z3cform/pull/11