Form select in drupal ctools multistep form

91 Views Asked by At

I'm trying to use drupal ctools multistep wizard function for creating multistep form, and I have problem with select element.

mymodule_multi_form_start($form, &$form_state) { 
    $form['from'] = array(
'#title' => t('from'),
'#type' => 'select',
'#maxlength' => 40,
'#options' => $from_options,
'#default_value' => isset($form_state['object']->from) ? $from_options[$form_state['object']->from] : $from_options_first,
);
}

After submit I always have the first option in the select list. If I use '#required' => TRUE, I have some error, because I can't move to the next step. What do I wrong? Or maybe is it error of ctools multistep wizard?

0

There are 0 best solutions below