Remove Sorting from listView in specific column

How do I remove sorting from listView (desired_module) in specific column in SugarCRM/SuiteCRM?

We want to Remove sorting on Name field (only one field) of ListView of <desired_module>Module.

Steps are as below,

Step 1: Copy your modules/< desired_module>/metadata/listviewdefs.php file to custom/modules/<desired_module>/metadata/listviewdefs.php and set such as

'EMAIL1' => 
array (
'width' => '16%',
'label' => 'LBL_LIST_EMAIL_ADDRESS',
'sortable' => false,
'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
'default' => true,
),

Step 2: Remember to run Admin -> Repair -> Quick Repair and Rebuild every time you change this file.

Note :

Here, <desired_module> means the module name you see in the URL, for example, Contacts, Leads, etc.

Hope you find this blog post helpful.

Feel free to add comments and queries, that helps us to improve the quality of posts.

You can contact us at info@infotechbuddies.com

Thank you.

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *