Can anybody tell me that how can i add radio buttons and checkboxes

Comments

quicksketch’s picture

Status: Active » Closed (fixed)
mudd’s picture

I use CCK, and I have a radio button group setup as a field

Type of data to store: Text
Form element to edit the data: Check boxes/radio buttons
Number of values: 1
Allowed values list:
0|Zero
1|One
2|Two
3|Three

Save the field, then re-edit to set the default value.

But what I'd like to know is how to substitute the label with a body of text when viewing the node. I imagine one could build a complicated module that displays a block with contents based based on the key value, etc. But perhaps there's a simple way to format a radio button so that when a user selects "GPL" in the form, the view displays one of several possible text bodies "This content is licensed under Gnu ...", such as using the PHP code field?