AnsweredAssumed Answered

Custom field in Global Search not show in list view

Question asked by Autchara Chaiprom on Feb 8, 2018

Hi,

 

I tried to add custom field brand_c to Global Search but it not show in a list view, it will show after click preview in full Global Search page.

 

Screenshot:

field brand_c and status are already in Studio > Leads > Layouts > Search in Default column. 

 

./custom/modules/Leads/clients/base/views/search-list/search-list.php

<?php
$viewdefs['Leads']['base']['view']['search-list'] = array(
    'panels' => array(
        array(
            'name' => 'primary',
            'fields' => array(
                array(
                    'name' => 'picture',
                    'type' => 'avatar',
                    'size' => 'medium',
                    'readonly' => true,
                    'css_class' => 'pull-left',
                ),
                array(
                    'name' => 'full_name',
                    'type' => 'fullname',
                    'label' => 'LBL_NAME',
                    'fields' =>
                    array(
                      'first_name',
                      'last_name',
                    ),
                ),
                // Custom field brand_c is dropdown
                array(
                  'name' => 'brand_c',
                  'type' => 'enum',
                  'label' => 'LBL_BRAND',
                ),
                'status',
            ),
        ),
        array(
            'name' => 'secondary',
            'fields' => array(
                array(
                    'name' => 'email',
                    'label' => 'LBL_ANY_EMAIL',
                ),
            ),
        ),
    ),
);

 

I do following http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.9/Architecture/Global_Search/#Primary_… 

But it not working with custom field, for default field such as phone_mobile is working properly.

 

I'm not sure where I missing, could you please suggest me ?

SugarPro 7.9.1.0

Thanks,

M

Outcomes