AnsweredAssumed Answered

How can we hide just First and Last name in Contacts module?

Question asked by Hammad Ahmad on Oct 3, 2016
Latest reply on Aug 29, 2017 by Shailesh Reddy

I have to customize Contacts Module create and record views. I'm working in SugarCRM Enterprises version


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.