I have to customize Contacts Module create and record views. I'm working in SugarCRM Enterprises version 184.108.40.206.
The situation is I need to just show Salutation if contact_type (custom field) value "Company" and if the same field value is "Person" I will display Salutation, First Name and Last name.
I tried with dependency framework but it only works with "full_name" and hides all field (i.e. Salutation, First Name and Last name). It doesn't work with only first_name or last_name fields. And my dependency action code is:
'name' => 'SetVisibility',
'params' => array(
'target' => 'full_name',
'value' => 'not(equal($aud_contact_type,"Company"))'
this.getField('first_name').show(); also doesn't work for First Name and Last name fields in sidecar (custom/modules/Contacts/clients/base/views/create/create.js) .
Any Help will be appreciated. Thanks.