$form_state values show node title instead of integer I'm using a select list in my custom module. When I select some option in the list after submitting the form, I can see the $form_state['values']['select_field'] is showing an integer.

How can I make the form_state values to show the title of the list,  instead of number of the selected option?
Whatever you set as the array keys for options will be the values, so if you want to see option content rather than value, you need to set it up like that:

$form['select_field'] = array(
  '#options' =&gt; array('Text' =&gt; 'Text', 'More Text' =&gt; 'More Text'),
);


Or, leave the numeric keys where they are, and refer back to the original options array in your submit handler:

$selected_index = $form_state['values']['select_field'];
$display_value = $form['select_field']['#options'][$selected_index];


If you go with the first option, drupal_map_assoc() will probably be useful.