RSS

Tag Archives: CCK

How to add single on/off checkbox with CCK in Drupal

Always I have to spend some extra time while going to add a single on/off checkbox with CCK in Drupal. Each time I think to write a post about it and finally I am going to documented it help others.

This is pretty simple to work with CCK fields in Drupal. But adding on/off checkbox is different from other CCK fields.

  • To add a single on/off checkbox go to Manage Field option for the specific content type
  • Add a new field with single on/off checkbox selection
Add single on/off checkbox

Add single on/off checkbox

  • Into allowed values list we need to add two entry. First one will be ignored and second one will be display into content add/edit page.
Add two values into allowed values field

Add two values into allowed values field

  • Finally checkbox will appear into content add/edit page
Single on/off checkbox

Single on/off checkbox

 
1 Comment

Posted by on February 8, 2012 in Drupal

 

Tags: ,