I have a field that I've defined as "Text" with the widget type set as "Select (or other) check boxes/radio buttons". The field has 7 values and I have set the number of allowed values to Unlimited.

When I view the form, the list displays as Radio Buttons (only allowing one selection), rather than as Check boxes (allowing multiple selections).

I've tried the same thing with a normal check boxes/radio buttons--set to a field type of List (text)-- and with the Number of values set to unlimited. That works as expected... I get multiple choice check boxes. If I set the number of values to "1", it displays as Radio Buttons.

Do you have any suggestions on how I can get this to work with your widget?

Comments

rggoode’s picture

I see the check boxes working in the sample at site.com/select-or-other-test-form, so I'm assuming that it should work and I just don't have the settings right. But I can't seem to find the right setting to get check boxes to work for me.

danielb’s picture

It's probably a bug with the Field API integration (which is not used in the sample form)

danielb’s picture

Title: Can't get Check Boxes to display » Multiple select list and checkboxes problems
Version: 7.x-2.0 » 7.x-2.x-dev
Category: support » bug

yeah the handling of multiple values really sucks :P

danielb’s picture

Status: Active » Fixed

I have made improvements to this.

rggoode’s picture

Status: Fixed » Needs work

I've tried the latest dev version and it DOES now properly format for check boxes when the number of values is set to Unlimited. However, when I test the resulting form in my content type, choose the Other option and fill in a new value, I get the following error: list_illegal_value

danielb’s picture

Status: Needs work » Fixed

The original issue was fixed though. You are now having an unrelated problem, often caused by switching a field to a different type of widget.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 2bbbaca on 7.x-2.x, 7.x-3.x, 8.x-3.x by danielb:
    Issue #1196698 by rggoode, danielb: Multiple select list and checkboxes...
  • Commit 006b625 on 7.x-2.x, 7.x-3.x, 8.x-3.x by danielb:
    Issue #1196698 by rggoode, danielb: Multiple select list and checkboxes...