Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008142TestLinkCustom fieldspublic2017-11-21 14:272017-12-05 06:06
Reporterewmartinez 
Assigned Tofman 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version1.9.16 (2016 Q4) 
Fixed in Version 
Summary0008142: Required checkbox custom field ask to select all values
DescriptionA checkbox buttom custom field setted as required, don't let select some of the values, it require to select all values.
Steps To Reproduce1-Configure a project with a custom field whith checkbox as required.
2-Create a test case and select one of the values. Try to save it.
Additional InformationIn file 01.jpg is show the message that require to select a value for the custom field. In this situations is correct because the custom field is configured as required value.
In file 02.jpg is show the same message, but in this situation it is an error, because at least one value need to be selected.
In file 03.jpg is show almost all values checked, but it still requiere to select more values.
Only selecting all values it save the register.
TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
Browser
PHP Version
TestCaseID
QA Team - Task Workflow Status
Attached Filesjpg file icon 03.jpg [^] (101,494 bytes) 2017-11-21 14:27


jpg file icon 02.jpg [^] (102,934 bytes) 2017-11-21 14:27


jpg file icon 01.jpg [^] (101,242 bytes) 2017-11-21 14:27


png file icon 8142-create_checklist_req.png [^] (60,776 bytes) 2017-11-29 13:05


png file icon 8142-created_checklist_req_all.png [^] (47,622 bytes) 2017-11-29 13:06

- Relationships

-  Notes
(0027030)
fman (administrator)
2017-11-25 08:50

please get latest code from github, do fresh install, retest & provide feedback
(0027033)
ewmartinez (reporter)
2017-11-26 02:23

ok
(0027035)
ewmartinez (reporter)
2017-11-29 13:10

We retest on latest version, the problem persists, we have to check all to save the changes.

8142-create_checklist_req.png and 8142-created_checklist_req_all.png are the screenshots related.
(0027056)
fman (administrator)
2017-12-05 05:59
edited on: 2017-12-05 06:06

https://stackoverflow.com/questions/5884582/required-attribute-on-multiple-checkboxes-with-the-same-name [^]

https://stackoverflow.com/questions/6218494/using-the-html5-required-attribute-for-a-group-of-checkboxes [^]

https://teamtreehouse.com/community/html5-required-checkbox-in-group [^]

explanation seems to be
HTML5 does not directly support requiring only one/at least one checkbox be checked in a checkbox group.

this means that some js will be needed

Workaround => do not use checkbox but multiselection list


- Issue History
Date Modified Username Field Change
2017-11-21 14:27 ewmartinez New Issue
2017-11-21 14:27 ewmartinez File Added: 03.jpg
2017-11-21 14:27 ewmartinez File Added: 02.jpg
2017-11-21 14:27 ewmartinez File Added: 01.jpg
2017-11-25 08:50 fman Note Added: 0027030
2017-11-25 12:01 fman Assigned To => fman
2017-11-25 12:01 fman Status new => feedback
2017-11-26 02:23 ewmartinez Note Added: 0027033
2017-11-26 02:23 ewmartinez Status feedback => assigned
2017-11-29 13:05 ewmartinez File Added: 8142-create_checklist_req.png
2017-11-29 13:06 ewmartinez File Added: 8142-created_checklist_req_all.png
2017-11-29 13:10 ewmartinez Note Added: 0027035
2017-12-05 05:59 fman Note Added: 0027056
2017-12-05 06:04 fman Note Edited: 0027056 View Revisions
2017-12-05 06:05 fman Note Edited: 0027056 View Revisions
2017-12-05 06:06 fman Note Edited: 0027056 View Revisions



Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker