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

rconstantine’s picture

Perhaps this could be used? optionwidgets_form2data($element, $field) as found in optionwidget.module

twooten’s picture

Did you ever solve this? I'm having the same issue with the single on off checkbox.

Thanks

jjemmett’s picture

+1 Subscribing - also experiencing this issue.

mry4n’s picture

I have the same issue in 6.x-1.1.

dadaist’s picture

+1 Subscribing

SYuri’s picture

+1 Subscribing

math0ne’s picture

+1

gintass’s picture

I 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.