Get submitted value of a select list error on #options - Drupal 7 I have seen this block of code in a few places as the correct method:

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


So here is my code for it:

$key1 = $form_state['values']['field_setup_time3'];
$reservationStartPadding = $form['field_setup_time3']['#options'][$key1];


But I get this error with my code:

Notice: Undefined index: #options in ... blah blah blah


I am using a List (integer) running a select list with 4 options in it. Is options not the right choice here? I just need the numerical value from the user selected dropdown list when they submit the calendar booking.

Thanks!
Thanks to tenken and Clive I was able to figure it out.

$key1 = $form_state['values']['field_setup_time3'];


This line outputted as a string. Since I was only using integers in my select list, the label and key value were the same. I removed both lines of code and replaced it with this (after some playing around with devel):

$reservationStartPadding = $form_state['values']['field_setup_time3']['und'][0]['value'];


This outputted the value as a number and not as a string. I was able to use it from there in my future code correctly.