I'm trying to set a select field to one specific default value by it's key (one country, which i retrieve from another form), and then disable the field.
I implement hook_form_alter, i get the correct field inside the $form array, but, when i want to set the select field to one value, nothing happens. I'm trying this way:
$form['#node']->webform['component']['value']['#default_value'] = $country;
But, this does not work. Any guess on how i can achieved this, and if this is possible or the right way to do it?