I have created custom module and in that created many custom fields.
Now Here I have declared one relate field and on the selection of relate field I am auto populating other fields as well.
But the problem with contacts module is : its populating full name in first_name and last_name field.
Here is the code:
'name' => 'site_contact',
'studio' => 'visible',
'label' => 'LBL_SITE_CONTACT',
'id' => 'contact_id_c',
'first_name' => 'site_contact',
'email1' => 'email',
'phone_work' => 'phone',
'first_name' => 'first_name',
'last_name' => 'last_name',
Here I am copying first_name from contacts to first_name of custom module
but each time it adds full name instead of just first_name, and same with last_name as well.