In sugarcrm 7.6, the field date_start and date_end are together
how can I separate and display only data_start?
In sugarcrm 7.6, the field date_start and date_end are together
how can I separate and display only data_start?
Hi Rodolfo,
Why dont you comment code of that in record.php
Find a file in /custom/modules/Calls/clients/base/views/record/record.php
If file is not there in place,navigate admin->studio->calls->layouts->Record view and click save& deploy or save. you will get record.php above mentioned path.Then follow below.
Here is the commented code for your reference.
array ( 'name' => 'panel_body', 'label' => 'LBL_RECORD_BODY', 'columns' => 2, 'labelsOnTop' => true, 'placeholders' => true, 'newTab' => false, 'panelDefault' => 'expanded', 'fields' => array ( 0 => array ( 'name' => 'duration', 'type' => 'duration', 'label' => 'LBL_START_AND_END_DATE_DETAIL_VIEW', 'dismiss_label' => true, 'inline' => true, 'show_child_labels' => true, 'fields' => array ( 0 => array ( 'name' => 'date_start', 'time' => array ( 'disable_text_input' => true, 'step' => 15, ), 'readonly' => false, ), /* 1 => array ( 'type' => 'label', 'default_value' => 'LBL_START_AND_END_DATE_TO', ), 2 => array ( 'name' => 'date_end', 'time' => array ( 'disable_text_input' => true, 'step' => 15, 'duration' => array ( 'relative_to' => 'date_start', ), ), 'readonly' => false, ), */ ), 'related_fields' => array ( 0 => 'duration_hours', 1 => 'duration_minutes', ), 'span' => 9, ),
Once you make changes in record.php,dont forget to give repair and rebuild. You have to take care label too!.I mean create new label and assign that label to this field(start_date)
Hope this helps!.
Hi Rodolfo,
Why dont you comment code of that in record.php
Find a file in /custom/modules/Calls/clients/base/views/record/record.php
If file is not there in place,navigate admin->studio->calls->layouts->Record view and click save& deploy or save. you will get record.php above mentioned path.Then follow below.
Here is the commented code for your reference.
array ( 'name' => 'panel_body', 'label' => 'LBL_RECORD_BODY', 'columns' => 2, 'labelsOnTop' => true, 'placeholders' => true, 'newTab' => false, 'panelDefault' => 'expanded', 'fields' => array ( 0 => array ( 'name' => 'duration', 'type' => 'duration', 'label' => 'LBL_START_AND_END_DATE_DETAIL_VIEW', 'dismiss_label' => true, 'inline' => true, 'show_child_labels' => true, 'fields' => array ( 0 => array ( 'name' => 'date_start', 'time' => array ( 'disable_text_input' => true, 'step' => 15, ), 'readonly' => false, ), /* 1 => array ( 'type' => 'label', 'default_value' => 'LBL_START_AND_END_DATE_TO', ), 2 => array ( 'name' => 'date_end', 'time' => array ( 'disable_text_input' => true, 'step' => 15, 'duration' => array ( 'relative_to' => 'date_start', ), ), 'readonly' => false, ), */ ), 'related_fields' => array ( 0 => 'duration_hours', 1 => 'duration_minutes', ), 'span' => 9, ),
Once you make changes in record.php,dont forget to give repair and rebuild. You have to take care label too!.I mean create new label and assign that label to this field(start_date)
Hope this helps!.
Thanks for your reply.
I'm use sugarcrm 7.6 ondemand. How get file in sugar ondemand?
Thanks