When I select the widget type of single on/off check box no label is displayed. I have filled in the label field and tried adding allowed values. The only text I can get to display is help text.

Comments

adam640kb’s picture

Version: 6.x-2.0-rc6 » 6.x-2.0-rc10

I can confirm. The label for "single on/off checkbox" does not show on edit, but does show on display of content.

adam640kb’s picture

Version: 6.x-2.0-rc10 » 6.x-2.1
Rowanw’s picture

Status: Active » Postponed (maintainer needs more info)

You need to specify both an 'on' and 'off' value in the allowed values list, as per the help text: "For a 'single on/off checkbox' widget, define the 'off' value first, then the 'on' value in the Allowed values section. Note that the checkbox will be labeled with the label of the 'on' value."

Example:

0|No
1|Yes
Gábor Mayer’s picture

Status: Postponed (maintainer needs more info) » Active

The label of field doesn't show on edit form.
Field type: integer with single checkbox.

j0k3z’s picture

This bug is still active. Users cant set check box without a label

j0k3z’s picture

markus_petrux’s picture

arun ak’s picture

Issue summary: View changes

This will help. As mentioned in Comment #3, after mention both on and off values the label will come. Off value label will show with checkbox.