How to Group fields same like Date created or Date Modified field ?

Hi All,

I want to group two custom fields same like date created field and that new field (grouped field) should be visible in all the roles layouts for record view layout setup from Studio.

Parents
  • You'll need to wrap the fields in a fieldset in the view's PHP file.

    Example:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    array (
    'name' => 'date_entered_by',
    'readonly' => true,
    'inline' => true,
    'type' => 'fieldset',
    'label' => 'LBL_DATE_ENTERED',
    'fields' =>
    array (
    0 =>
    array (
    'name' => 'date_entered',
    ),
    1 =>
    array (
    'type' => 'label',
    'default_value' => 'LBL_BY',
    ),
    2 =>
    array (
    'name' => 'created_by_name',
    ),
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi  ,

    I can do it this way. but I am looking for another approach because my instance is Ondemand. So I need to edit all the roles record.php files to achieve this right?. But I want this grouped field should be visible for all the roles in studio/layout instead of editing all the record.php files. I want same like Date Modified, Date Created and Address group fields.

    Thanks & Regards,

    Sundar

Reply
  • Hi  ,

    I can do it this way. but I am looking for another approach because my instance is Ondemand. So I need to edit all the roles record.php files to achieve this right?. But I want this grouped field should be visible for all the roles in studio/layout instead of editing all the record.php files. I want same like Date Modified, Date Created and Address group fields.

    Thanks & Regards,

    Sundar

Children