How come this doesn't work? It's driving me nuts..

$form_state['values']['field_department'] = "jeff";

But this does work

$form_state['values']['field_department'] = $form_state['values']['field_subdepartment']; //works

Is there something special about this value where it cannot be a string? Send help!

Comments

jefflane’s picture

forgot to mention that:

 $form['field_department']['#type'] = 'value';
 $form['field_subdepartment']['#type'] = 'value';
jefflane’s picture

Well, it seems I typically answer my post after writing it.. but here is an (maybe not THE) answer

	$form_state['values']['field_department'][0]['value'] = "jeff";

seems to work OK.