- Issue created by @RoKi
- Status changed to Postponed: needs info
almost 2 years ago 11:20pm 10 February 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
I am not able to reproduce this issue using the attached webform. Please provide an example webform or more information.
If I uncheck all checkboxes and submit the webform the submitted values are OK (Submitted values are: checkboxes: { }) Thats fine.
But if review the results of this submission (HTML, Table, Plain text) or edit the submission again, the field values are displayed as "checkboxes one, two, three".
Only viewing the results as YAML shows it correct ("data: { }")- Status changed to Needs work
almost 2 years ago 3:31pm 16 February 2023 - πΊπΈUnited States jrockowitz Brooklyn, NY
Thanks for explaining how to reproduce the issue. This is a major issue because the displayed data is wrong.
- πΊπΈUnited States jrockowitz Brooklyn, NY
This issue also impacts multiple select menus.
checkboxes: '#type': checkboxes '#title': checkboxes '#options': one: one two: two three: three '#default_value': - one - two - three select: '#type': select '#title': select '#multiple': true '#options': one: one two: two three: three '#default_value': - one - two - three
- πΊπΈUnited States jrockowitz Brooklyn, NY
The attached patch only partially solves the issue of not displaying the default values.
I am unsure how to handle the default value when editing a submission.
- πΊπΈUnited States jrockowitz Brooklyn, NY
The attached patch goes after the root cause where a submissions empty multiple-value elements are returned as NULL and not an empty array (i.e., []).
- πΊπΈUnited States jrockowitz Brooklyn, NY
There are performance implications for the patch from #7, which could be mitigated with a caching strategy.
- Status changed to Needs review
almost 2 years ago 4:32pm 16 February 2023 The last submitted patch, 7: 3340590-7.patch, failed testing. View results β
The last submitted patch, 9: 3340590-9.patch, failed testing. View results β
The last submitted patch, 13: 3340590-13.patch, failed testing. View results β
-
jrockowitz β
authored 53a67c1c on 6.1.x
Issue #3340590 by jrockowitz: Default values for checkboxes always...
-
jrockowitz β
authored 53a67c1c on 6.1.x
-
jrockowitz β
authored 53a67c1c on 6.x
Issue #3340590 by jrockowitz: Default values for checkboxes always...
-
jrockowitz β
authored 53a67c1c on 6.x
-
jrockowitz β
authored 53a67c1c on 6.2.x
Issue #3340590 by jrockowitz: Default values for checkboxes always...
-
jrockowitz β
authored 53a67c1c on 6.2.x
- Status changed to Fixed
over 1 year ago 1:54am 27 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.