get node title from url
function _get_emp_name(){
 global $base_url;
  $current_url = $base_url . request_uri();
  $url_sub = substr($current_url, 0, explode('&amp;', $current_url));
  $to_array = explode('&amp;', $current_url);
  $ar_name = explode("/", $to_array[1], 2);
  $node = node_load($ar_name[1]);
  $name = $node-&gt;title;
  return $name;


}

Then with form_alter I use:

$form['field_employee']['und'][0]['target_id']['#default_value'] = _get_emp_name();