<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello Davide,<br>
<br>
The problem you're having is with how you must define the parameters in
your field and widget.&nbsp; <br>
<br>
When defining an option widget (single checkox or radio button), the
"Label" field is not used.&nbsp; The instructions for the field (at the top)
say (in english):<br>
<blockquote>For a 'Single on/off checkbox' widget, define the 'off'
value first, then the 'on' value in the <strong>Allowed values</strong>
section. Note that the checkbox will be labeled with the label of the
'on' value.<br>
</blockquote>
So:<br>
<ul>
  <li>You must enter&nbsp; two (and only two) parameters in the "Allowed
Values list:" text area</li>
  <li>the format of the lines must be "value|label", (and the label of
the first line is effectively ignored).</li>
</ul>
For example, say you wanted:<br>
<ul>
  <li>A simple "Yes/No" question for the user</li>
  <li>The value returned stored in the database to be "1" or "0",</li>
  <li>you want the label to be "Yes" (and the user must select "yes" in
order for the value to be stored to be 1),</li>
</ul>
You should put the following in the Allowed Values section:<br>
<blockquote>0|No<br>
1|Yes<br>
</blockquote>
The weirdness about this format has to do with the way the module
author wanted you to be able to switch the field type from
radio/checkbox to list of radio buttons without having to change
anything except for the "Widget" type in the CCK field definition. <br>
<br>
For more information about this, see <a class="moz-txt-link-freetext" href="http://drupal.org/node/115026">http://drupal.org/node/115026</a>, and
the comments by jsenich (comment #15), and yched (comment #16).<br>
<br>
...alex...<br>
<br>
<br>
<br>
Davide Michel 'ZioBudda' Morelli wrote:
<blockquote cite="mid:47ECDB9B.8090305@ziobudda.net" type="cite">
  <pre wrap="">Hi all, I have a problem with CCK (1.6-1) on my new Drupal installation 
(5.7).

I can create a Text Single sign on/off field (checkbox or radio button), 
but with some errors:

1) The label is not associated to the field. See the two image attached.

2) When I check the field, my check is not stored in the DB so when I 
re-edit the node I see that the field is not checked.

Any help ?


  </pre>
</blockquote>
</body>
</html>