Regular multi-checkbox/radio widget seems to work, but the single checkbox is not. I have two allowed values, then second of which is the 'on' status: Not Duplex and Duplex. When I get to step 7 of the wizard, an error is thrown stating I have an illegal value. The allowed values are seemingly what it is testing against, which is right. However, the value being tested is either 0, or 1 which is what the checkbox returns as a value during regular form submission. So there needs to be something that matches 0 and 1 to the allowed values in order.
Does that make sense? I don't mind making the patch myself, but I'm having trouble tracking down where to make that change.
Comments
Comment #1
rconstantine commentedPerhaps this could be used? optionwidgets_form2data($element, $field) as found in optionwidget.module
Comment #2
twooten commentedDid you ever solve this? I'm having the same issue with the single on off checkbox.
Thanks
Comment #3
jjemmett commented+1 Subscribing - also experiencing this issue.
Comment #4
mry4n commentedI have the same issue in 6.x-1.1.
Comment #5
dadaist commented+1 Subscribing
Comment #6
SYuri commented+1 Subscribing
Comment #7
math0ne commented+1
Comment #8
gintass commentedI used suggestion #1 from this thread: http://drupal.org/node/265716#comment-1031947
I temporary changed the widget type from "Single on/off" to "Select". Unfortunately it ONLY worked with the fields that haven't been used in any other content types. In the case where field with the single check box have been used in more than one content type this trick didn't work therefore I decided to replace "re-usable" field with the new one. I just had to run MySQL UPDATE command to copy all the data from the old field to a new one.