[MGNLFORM-194] Check box group need on 'required' every box to be checked. Created: 04/Sep/13  Updated: 01/Oct/13  Resolved: 01/Oct/13

Status: Closed
Project: Magnolia Form Module
Component/s: None
Affects Version/s: 1.4.8, 2.0.2
Fix Version/s: 1.4.9, 2.1

Type: Bug Priority: Major
Reporter: Christian Ringele Assignee: Jaroslav Simak
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2013-09-04 at 9.12.20 .png     PNG File Screen Shot 2013-09-04 at 9.12.39 .png    
Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Sprint: 5.1 - Final

 Description   

When setting a group of check-boxes a required, every check box needs to be checked.
The reason is, that the html5 attribute 'required' is set on every checkbox item, see print screens.



 Comments   
Comment by Christopher Zimmermann [ 01/Oct/13 ]

overall looks good.

instead of var element = checkboxes[0];
+ while (element.nodeName != "FORM")

{ + element = element.parentNode; + }

You could just get the form like so

var formElement = checkboxes[0].form;

Generated at Mon Feb 12 05:37:47 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.