AnsweredAssumed Answered

auto populate contacts module's first name

Question asked by Kalpesh Thakkar on Apr 17, 2018

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:


0 =>
array (
'name' => 'site_contact',
'studio' => 'visible',
'label' => 'LBL_SITE_CONTACT',
'displayParams' =>
array (
'field_to_name_array' =>
array (
'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.