Hello,
I want to add middle name record view header pane in contact module.
Ramana Raju Santhana Francesca Shiekh Alan Apter
Thanks
Dipesh
Hello,
I want to add middle name record view header pane in contact module.
Ramana Raju Santhana Francesca Shiekh Alan Apter
Thanks
Dipesh
I believe you will need to customize both the fullname feld type:
clients/base/fields/fullname
and the Contacts record view php
array(
'name' => 'full_name',
'label' => 'LBL_NAME',
'dismiss_label' => true,
'type' => 'fullname',
'fields' => array('salutation', 'first_name', 'last_name'),
),
HTH
Francescas
Hi Francesca Shiekh & Ajay Kumar
It is work for me in Record edit view. When I save middle name, it is saved with database. But I have load record view page at that time middle name is undefined display.
List page
Record view page
Thanks
HiFrancesca Shiekh ,
custom/modules/Contacts/clients/base/fields/fullname/fullname.js
/*
* I only wanted to apply this change to the Contacts modules so I put this file in:
* custom/modules/Contacts/clients/base/fields/fullname/
*/
({
extendsFrom: 'FullnameField',formatMap: {
'f': 'first_name',
'l': 'last_name',
's': 'salutation',
'm': 'middle_name_c'
},initialize: function(options) {
// override the name format for this module
app.user.setPreference('default_locale_name_format', 's f m l');this._super('initialize', [options]);
},format: function() {
var fullname = this.model.attributes.salutation +' '+ this.model.attributes.first_name +' ';
fullname += this.model.attributes.middle_name_c +' '+ this.model.attributes.last_name;return fullname;
},
})
It display with middle name.
When I will save record, It will store with Database.
Thanks
Hi,
I added middle name field already, but the Last Name width is very small, please help me how to change width of field on headerpane
Thanks,
Bao
Hi,
I added middle name field already, but the Last Name width is very small, please help me how to change width of field on headerpane
Thanks,
Bao