I am trying to alter a form with a taxonomy term select drop down field; I want to change the default term selected when the form loads. I'm altering the form array via hook_form_alter; however, my changes do not seem to be taking effect. I'm looking for an answer similar to this but for Drupal 7.
I'm expecting :
$form['field_mytax_reference']['#default_value'] = array($taxTermId => $taxTermName);
to do the job but the form remains with the default specified when the field was created.
Thanks in advance.