Missing label on Drupal 5 CCK single on/off checkbox - drupal

I'm creating a form using the Content Construction Kit (CCK) in Drupal5.
I've added several singe on/off checkboxes but their associated labels are not being displayed. Help text is displayed underneath the checkboxes but this is not the desired behavior. To me the expected behavior is that the label would appear beside the checkboxes.
Any thoughts?

Found the answer:
It turns out to be functionality provided by the CCK, but it's counterintuitive.
For single on/off checkboxes, drupal will use the on label specified in the allowed values field:
0
1|This is my label

Related

Drupal Webform generating radio buttons for select fields?

My webform is generating radio buttons instead of select fields. Does anyone have any idea what might be causing this?
When you are editing that field, look down at the very bottom under display and make sure "Listbox" is checked. It is the one that says:
Check this option if you want the
select component to be of listbox type
instead of radio buttons or
checkboxes.
You didn't say what version of the module you are using, but this should be accurate for all current versions. In the future it would be a good idea to include what version you are having the issue with when asking for help.

Drupal: Views: how to group fields

I've created a views of node and I've selected the "fields" option in order to select which fields to display and in which order.
Is there a way to group such fields ? It would be very useful to have parent divs in my html code.
thanks
There's a simpler way to do it: http://www.arsnova.cc/web-development-articles/2012-07-27/grouping-fields-together-drupal-views
Let's say you want to group fields 1-3 together within a div.
First, exclude fields 1 and 2 from display. (By "exclude", I do not mean to delete them from the views display; rather, click on the "exclude from display" button within each field's options.) The fields you exclude from display must come before the other field for this to work. If they don't, rearrange them so they do.
Go to field 3, and rewrite the results, inserting the token for each of fields 1-3.
That's all you need to do. Fields 1, 2, and 3 will now appear within field 3's div. If you want, you can also add additional markup within the "rewrite results" area.
Recently found the best way for my needs and apparently for the needs of many people:
Use views_fieldsets module https://drupal.org/project/views_fieldsets, it allows yo to create a grouping div to put fields inside.
Grouping is built into Drupal 8 Views. So no need for any extra modules. Here's how:
Edit your view (be sure it has fields)
Click Format's Settings
A box will pop up with all your selected fields
Look right underneath all the field names, there should be "Grouping field Nr.1"
Select the field you'd like to group by
Click Apply
If you want to subgroup with a second field, just go back to 2 then you'll see "Grouping field Nr.2"
That's it.
Yes, click on the gear next to the Style option (under Basic Settings) and set the Grouping field. Keep in mind, the grouping field needs to be added to the view, but you can check the Exclude from display option to hide it, if needed.
I'm pretty sure that would give you a parent div. If not, you could add the parent div, by overriding the default templates (look to the Theme: Information section, under Basic Settings, for more information).

checkbox for Drupal CCK

I'm new at Drupal. love it so far :)
I'm creating a CCK custom content type. I need to make a amenities list in checkbox format. so I made;
File Type: Text
Widget Type:
checkboxes/radiobuttons
and Allowed values list:
onsite_dining|Onsite Dining
meeting_space|Meeting Space
business_center|Business Center
and it creates Radio Buttons which only 1 selection :( How can I make it Check Box to give ability to select more than 1?
Appreciate helps!
There as an option: Number of values
You have to set it to something other than one.
This option is below the Required checkbox in the field settings page.

Drupal 6 CCK - Having a textbox appear when 'Other' is selected

I have a special content-type that I have created, and one of the fields is a radio button list. The last element is named 'Other' and I would like to have a textbox appear and allow the user to enter in a non-defined value.
Is this sort of capability provided by any sort of module, or is this something that needs to be coded by hand? (If so, would you mind pointing me in the correct direction?)
The CCK Select Other module appears to get you most of the way there. I imagine it could be modified to work with radios fairly easily.

Drupal : How to add javascript function on click event of a cck check box?

I have added two fields one is check box and another one is text box to a content type and now i want to toggle the text box on clicking check box .Can any one help in doing so.
I just figured out the answer, we need to add in a conditional field setting (feature build in with drupal) amongst the two field to make them dependent on each other.

Resources