Initially unchecked radio boxes in a form on load I have programmed module having a form (using Drupals's form API) which contains radio checkboxes like this:

$form['r_8'] = array(
    '#type' =&gt; 'radios',
    '#options' =&gt; array(
        '1' =&gt; t('Yes'),
        '0' =&gt; t('No')
    ),
    '#required' =&gt; TRUE,
    '#checked' =&gt; '', // ???
    '#title' =&gt; t('a label text ... '),
    '#default_value' =&gt; !empty($form_state['values']['r_8']) ?
        $form_state['values']['r_8'] : '',
    '#suffix' =&gt; '&lt;div style="clear: left"&gt;&lt;/div&gt;'
);


When the page with that form is initially loaded, I want all these radios initially unchecked. I tried to set the #checked property to FALSE, but it doesn't work. Setting the #default_value to, for example, -1, a warning raises (which I can understand, because -1 is none of the provided option values).

Is there any way to load initially the form with the radio's unchecked?

I could not find any information pointer so that's why I ask here.

Thanks in advance!
#checked is not a property used from radios form fields, nor radio form fields. It was not even used from Drupal 6.

I used the following code, and none of the radio buttons were selected.

/**
 * Form builder.
 */
function custom_module_form($form, &amp;$form_state) {
  $form['r_8'] = array(
    '#type' =&gt; 'radios',
    '#options' =&gt; array(
      '1' =&gt; t('Yes'),
      '0' =&gt; t('No')
    ),
    '#title' =&gt; t('Test'),
    '#default_value' =&gt; NULL,
  );

  return $form;
}  


  

In this case, if the user doesn't select one of the radio buttons, the form field would not have a a value associated. Your code could handle it as if the user selected a third value (such as "undecided") or what your code considers the default value (e.g. "yes"); if the latter is the case, users should see a note about that.

It makes sense to use the following code, at least in a case: When you want the users voluntary select a value for the field, and not use the default one selected by the module. For example, it would make sense if the user is expressing an agreement, and you want to be sure the user noticed that field, and clicked on one of the radio buttons. 

function custom_module_form($form, &amp;$form_state) {
  $form['r_8'] = array(
    '#type' =&gt; 'radios',
    '#required' =&gt; TRUE,
    '#options' =&gt; array(
      '1' =&gt; t('Yes'),
      '0' =&gt; t('No')
    ),
    '#title' =&gt; t('Test'),
    '#default_value' =&gt; NULL,
  );

  return $form;
}