Change the value of a field depending on the selection of another
Converting the element to a value type might be easiest:

// In a form alter hook.
$form['field_foo'][LANGUAGE_NONE][0]['value']['#type'] = 'value';
$form['field_foo'][LANGUAGE_NONE][0]['value']['#value'] = 'some static value';