Skip to main content

Posts

Showing posts with the label search-form

ADD CHECK BOX IN DEFAULT SEARCH FORM IN SUGARCRM

If you want to search for only customer type of accounts, then follow these steps you will be successful to achieve this functionality Open   SearchFields.php place this code inside this file ‘customer_only’ => array( ‘query_type’=>’default’, ‘db_field’=>array(‘account_type’), ‘operator’=>’in’, ‘closed_values’ => array(‘Customer’), ‘type’=>’bool’, ), Now open searchdefs.php ‘customer_only’ => array ( ‘name’ => ‘customer_only’, ‘label’ => ‘LBL_CUSTOMER_ONLY_FILTER’, ‘type’ => ‘bool’, ‘default’ => false, ‘width’ => ’10%’, ), to be on safer side repair and rebuild and open your account module and check this check box will be there and will be functional.