How do you load a select field with pre-selected items when the Chosen module is installed/enabled? How do you load a select field with pre-selected items when the Chosen module is installed/enabled?
I am using the following code.
$my_list = array('item1' = 'item1', 'item2' = 'item2', 'item3' = 'item3');
$form['list_info']['my_list'] = array(
  '#title' =&gt; t('Select a list to manage:'),
  '#type' =&gt; 'select',
  '#options' =&gt; $my_list,
  '#default_value' =&gt; $my_list,
);

The select field shows up empty. Clicking it reveals the items and I can select them, but I need the field to show up with the items selected.
Your select field is currently only accepting one selected option. This is why it won't allow an array as a default value. (It expects a string or an integer).
The following select field allows more than a selected option.
$form['list_info']['my_list'] = array(
  '#title' =&gt; t('Select a list to manage:'),
  '#type' =&gt; 'select',
  '#options' =&gt; $my_list,
  '#default_value' =&gt; $my_list,
  '#multiple' =&gt; TRUE,
);