Checkboxes not rendering All the other form elements render properly. Radios and Checkboxes do not. The title and descriptions show up, but not the boxes or radios.

$options7 = array();
foreach ($resqry1 as $option)
{
  $options7[$option-&gt;id] = $option-&gt;id;
}

$form = array();
$form['lis'] = array(
  '#type' =&gt; 'checkboxes',
  '#options' =&gt; $options7,
);


return $form;


Please help me out. Thanks
I faced similar situation while trying to inject checkboxes to user_register_form. I think checkboxes type is not valid type for typical rendering. Form elements of type checkboxes get totally reformatted within form_builder after form_alter hooks have executed. Make sure that form builder runs after you place your field.