Re: z3cform Inline validation failures on schema.Bool, possibly others
"David Glick (Plone)" <david.glick-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
On 9/20/13 9:56 AM, Sean Upton wrote: > plone.app.z3cform.inline_validation.InlineValidationView chokes with > BadRequest on any widget that does not define a data-fieldname > attribute in the DOM, which breaks on schema.Bool, and possibly other > field/widget types. > > See: https://dev.plone.org/ticket/13741 > > Any objections to my proposed solution of making validation (in both > JS in Products.CMFPlone and the view in plone.app.z3cform) ignore the > case of no fieldname as a non-error condition? Sounds fine. We should also fix the checkbox ploneform-render-widget view in plone.app.z3cform to specify the fieldname. > > Also, it seems reasonable for inline validation to ignore blur events > on checkboxes, no? Why? It's common to have a checkbox that must be checked (e.g. "I hereby give my approval and signature." sort of thing) ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk