After SugarCRM 10.x version release we have issue in label display for a 6 column layout

Hi All,

As in 10.x feature SugarCRM introduced record label placement like above the field or beside the field. Due to this labels are not displayed for a 6 column layout.

Currently we're using 6 column layout to represent the fields in tabular format to present the data in record view.

Below is the code

6 =>
array (
'newTab' => false,
'panelDefault' => 'expanded',
'name' => 'LBL_RECORDVIEW_PANEL8',
'label' => 'Annual Revenue',
'columns' => 6,
'labelsOnTop' => 1,
'placeholders' => 1,
'fields' =>
array (
0=> array (
'label' => 'Estimated Annual Volume',
),
1=> array (
'label' => 'Year 1',
),
2 =>
array (
'label' => 'Year 2',
),
3 =>
array (
'label' => 'Year 3',
),
4 =>
array (
'label' => 'Year 4',
),
5 =>
array (
'label' => 'Year 5',
),
6=> array (
'label' => 'Target Price(USD)',
),
7=> array (
'name' => 'target_price_year_1_c',
'label' => ' ',
),
8 =>
array (
'name' => 'target_price_year_2_c',
'label' => ' ',
),
9 =>
array (
'name' => 'target_price_year_3_c',
'label' => ' ',
),
10 =>
array (
'name' => 'target_price_year_4_c',
'label' => ' ',
),
11 =>
array (
'name' => 'target_price_year_5_c',
'label' => ' ',
),
12=> array (
'label' => 'Annual Volume',
),
13=> array (
'name' => 'annual_volume_year_1_c',
'label' => ' ',
),
14 =>
array (
'name' => 'annual_volume_year_2_c',
'label' => ' ',
),
15 =>
array (
'name' => 'annual_volume_year_3_c',
'label' => ' ',
),
16 =>
array (
'name' => 'annual_volume_year_4_c',
'label' => ' ',
),
17 =>
array (
'name' => 'annual_volume_year_5_c',
'label' => ' ',
),
18=> array (
'label' => 'Annual Revenue(USD)',
),
19=> array (
'name' => 'annual_revenue_year1_c',
'label' => ' ',
),
20 =>
array (
'name' => 'annual_revenue_year_2_c',
'label' => ' ',
),
21 =>
array (
'name' => 'annual_revenue_year_3_c',
'label' => ' ',
),
22 =>
array (
'name' => 'annual_revenue_year_4_c',
'label' => ' ',
),
23 =>
array (
'name' => 'annual_revenue_year_5_c',
'label' => ' ',
),
),
),

Above code will represent the data like below in tabular format of 9.3 version

https://drive.google.com/drive/u/0/folders/1Q_8uTb1szObT7M4pi9SgU1_6ytYlsn2u

But the same code we use in 10.1 the labels are not showing tabular format.

Does anyone have any idea?

Parents
  • Hi Raman,

    I have tried in my local machine by setting the 6 column layout in one of the module in 10.x Sugar Instance and experienced the issue what you have told. As you know that if the filed label placement is set to "beside field value" option in your profile even for the 2 column layout the field label will not be displayed completely until you hover on the specific field label and this is sugar default behaviour and as you are trying to use six column layout with beside value option the real estate in record view is not supported as it requires more space. If your requirement is six column layout, could you please change the field label placement option to "above field value" in your profile and check this. Otherwise could you try for 3 column or 4 column layout which gives field labels even with Beside field value option. Let me know if it works.

    This is how it looks Field Label Placement as "Above Field Value" with six column layout.

  • Hi Raman,

    Are you trying to set the layout through record.php file? If you are admin user can you please go to studio -->your module name-->layouts-->record view. In record view can you please save and deploy the layout and see what are the changes incorporated in the record.php of your specific module and can you also give a  screenshot of record view layout of your module from studio, so we can identify why it is happening for you.

  • Thanks

    We're calling this layout via record.js based on the quote record values, if the quote record status = Open, then one layout will be displayed and is quote record status = In progress then another layout will be showed to users.

    Since this is different layout for the same role but the layout will change based on quote record status. So we can't use Studio to achieve this.

    Regards,

    Thiravi

Reply Children
No Data