Node reference field share between two content types I have Two Content types Store and Deals and one Vocabulary named as Outlets. Outlet has many terms. I have added outlets as a term reference field to stores content type, and title field of store content type is added as a node reference field to deals.

1.Store content type
When I am adding a new store I am selecting some outlet terms for it and saving it. 

2.Deals Content type
In Deals content type when I am creating a new deal 
I am selecting any store in dropdown, which I have added here as a node reference of store content type.
What my concern is now while selecting any store title I want its corresponding outlets to be displayed here, so that if I wish I can uncheck some of them and then save.

Any help would be much appreciated.Please find the screenshot for better understanding.


Top Image is the store content type adding a store carters
Second image is the deals content type I am selecting the store which I have previously added in stores, now while selecting carters the corresponding outlets should get selected
I'm not sure you can do it with Conditional Fields, so I did it with a custom code. You have to :


Hook on your form
Get referenced node
Get its taxonomy value(s)
Check this values in your term reference field.

function MYMODULE_form_alter(&amp;$form, &amp;$form_state, $form_id) {    
    if($form_id == "page_node_form") {
        $form['field_OUTLETS']['#prefix'] = '&lt;div id="mytaxofield"&gt;';
        $form['field_OUTLETS']['#suffix'] = '&lt;/div&gt;';
        $form['field_STOREREFERENCE']['und']['#ajax'] = array(
            'callback' =&gt; 'MYCALLBACK',
            'wrapper' =&gt; 'mytaxofield',
            'method' =&gt; 'replace',
            'effect' =&gt; 'fade',
        );
    }
}

function MYCALLBACK($form, $form_state) {
    if(!empty($form_state['input']['field_STOREREFERENCE'])) {
        $nr = node_load($form_state['input']['field_STOREREFERENCE']['und']);
        foreach($nr-&gt;field_OUTLETS['und'] as $delta =&gt; $value) {
            // Add term to default values
            $form['field_OUTLETS']['und']['#default_value'][] = $value['tid'];
            // As it's not enough (I might need help on that one), I force it with the '#checked' value
            $form['field_OUTLETS']['und'][$value['tid']]['#checked'] = TRUE;
        }
        $form['field_OUTLETS']['und']['#default_value'] = drupal_map_assoc($form['field_OUTLETS']['und']['#default_value']);
    }
    return $form['field_OUTLETS'];
}