How show only field date_start in call module? Sugarcrm 7.6

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!.

  • Thanks for your reply.

    I'm use sugarcrm 7.6 ondemand. How get file in sugar ondemand?

    Thanks

  • Hi Rodolfo,

    You can use "Diagnostic Tool" to get files. Navigate to Admin->System->Diagnostic Tool.

    And enable check only for "SugarCRM Custom direcory". and click "Execute Diagnostic".Now you are able to get files(custom/modules/Calls/clients/base/views/record/record.php).

    If file is not there,then navigate to admin->studio->calls->layouts->Record view and click save& deploy or save. Then do the same.Now you will be able to get files.

    Hope this helps!.

  • Thank you.

    This work for me XD

    Ajay Kumar escreveu:

    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.

    1. array(
    2. 'name'=>'panel_body',
    3. 'label'=>'LBL_RECORD_BODY',
    4. 'columns'=>2,
    5. 'labelsOnTop'=>true,
    6. 'placeholders'=>true,
    7. 'newTab'=>false,
    8. 'panelDefault'=>'expanded',
    9. 'fields'=>
    10. array(
    11. 0=>
    12. array(
    13. 'name'=>'duration',
    14. 'type'=>'duration',
    15. 'label'=>'LBL_START_AND_END_DATE_DETAIL_VIEW',
    16. 'dismiss_label'=>true,
    17. 'inline'=>true,
    18. 'show_child_labels'=>true,
    19. 'fields'=>
    20. array(
    21. 0=>
    22. array(
    23. 'name'=>'date_start',
    24. 'time'=>
    25. array(
    26. 'disable_text_input'=>true,
    27. 'step'=>15,
    28. ),
    29. 'readonly'=>false,
    30. ),
    31. /*
    32. 1=>
    33. array(
    34. 'type'=>'label',
    35. 'default_value'=>'LBL_START_AND_END_DATE_TO',
    36. ),
    37. 2=>
    38. array(
    39. 'name'=>'date_end',
    40. 'time'=>
    41. array(
    42. 'disable_text_input'=>true,
    43. 'step'=>15,
    44. 'duration'=>
    45. array(
    46. 'relative_to'=>'date_start',
    47. ),
    48. ),
    49. 'readonly'=>false,
    50. ),
    51. */
    52. ),
    53. 'related_fields'=>
    54. array(
    55. 0=>'duration_hours',
    56. 1=>'duration_minutes',
    57. ),
    58. 'span'=>9,
    59. ),

    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!.