I'm writing an extension to customize the create new activity page. I need to add the 'With Contact' address and phone number to the page. When editing the /civicrm/CRM/Activity/Form/Activity.php how do you get the address to propagate when the contact is selected? Here is what I'm trying to edit:
),
'target_contact_id' => array(
'type' => 'entityRef',
'label' => ts('With Contact'),
'attributes' => array('multiple' => TRUE, 'create' => TRUE),
),
'target_contact_adress' => array(
'type' => 'entityRef', //I'm guessing I need to change this line to call the address?
'label' => ts('With Contact Address'),
'attributes' => array('multiple' => TRUE, 'create' => TRUE),
),
Edit: To better explain what I'm trying to do. I'm creating a custom extension for an organization that uses the Activity assignment notification to email their volunteers that don't have access to the CiviCRM database contact information (Phone Numbers and Addresses) about their members. In order to do this I need to add two fields that pull this information when a contact is selected.