Auto-Fill from on content type to another I have a content type called Point-of-Contacts, basic info for a person. (~600 nodes)

I have another content type, like a form, that has a select list of all Points-of-Contacts.  When a user selects their desired Point-of-Contact, by name from the select list, I need the rest of the info of that Point-of-Contact to auto-fill text boxes on the form.

Any ideas?

NOTE: Using Drupal 7
In my example I've created two content types with two custom fields in addition to your node reference field:


Node type: Point-of-Contact (machine name points_of_contacts)


Text field: To field one (machine name field_to_field_one)
Text field: To field two (machine name field_to_field_two)

Node type: Example (machine name example)


Node reference: Point-of-Contact (machine name field_points_of_contacts)
Text field: Field one (machine name field_field_one)
Text field: Field two (machine name field_field_one)



Then You need to create a custom module to alter node reference dropdown field to ajax dropdown with callback function.

First create custom module by following this tutorial

Second alter node reference field by implement this hook hook_field_widget_form_alter 

function MODULE_NAME_field_widget_form_alter(&amp;$element, &amp;$form_state, $context) {

  if(isset($element['#field_name']) &amp;&amp; $element['#field_name'] == 'field_points_of_contacts') {
    $element['#ajax'] = array(
      'callback' =&gt; 'MODULE_NAME_auto_fill_callback',
    );
  }
}


Third implement ajax callback function

function MODULE_NAME_auto_fill_callback(&amp;$form, &amp;$form_state) {

  $commands = array();

  if(isset($form_state['values']['field_points_of_contacts'])) {
    // get selected item/node from dropdown list
    $nid = $form_state['values']['field_points_of_contacts']['und'][0]['nid'];

    // load node by nid
    $node = node_load($nid);

    if($node) {

      if(isset($node-&gt;field_to_field_one['und'])) {
        // fill text field 
        // edit-field-field-one-und-0-value represent the generated html id of the text field 
        $commands[] = ajax_command_invoke('#edit-field-field-one-und-0-value', 'val', array($node-&gt;field_to_field_one['und'][0]['value']));  
      }        

      if(isset($node-&gt;field_to_field_two['und'])) {
        // fill text field 
        // edit-field-field-two-und-0-value represent the generated html id of the text field 
        $commands[] = ajax_command_invoke('#edit-field-field-two-und-0-value', 'val', array($node-&gt;field_to_field_two['und'][0]['value']));  
      }
    }
  }

  return array('#type' =&gt; 'ajax', '#commands' =&gt; $commands);
}


Note: change MODULE_NAME to your desirable module name.