0 Comments | 0 Shares | Urdhva Tech | Tags: ListView

Many times users find it necessary to remove the check box and/or edit links from the list view of any module.

SugarCRM doesn't provide a setting to achieve this from admin panel.

There are few simple steps to follow and you are sorted.

First thing, you should have access to file base, if you have it, go ahead, world is all yours.

Throughout the blog, we will use custom module "UT_Blogs" if the blog post is not about specific OOB(out of box) modules.

Step 1: Check if you have a file named view.list.php under custom/modules/<desired_module>/views folder.

  • If you have, skip to Step 2.
  • If you do not have, like me, follow..

Check if you have a file named view.list.php under modules/<desired_module>/views folder.

  • If you have, copy that file and paste under custom/modules/<desired_module>/views folder and skip to Step 2.
  • If you do not have it, create a file named view.list.php under custom/modules/<desired_module>/views folder and write following code.

class <desired_module>ViewList extends ViewList 
     function display()

P.S. Here, <desired_module> means the module name you see in the url, for example, Contacts, Leads, UT_Blogs, etc.

Here is a special mention about custom module: if you have a custom module, we prefer to create/change the file under modules/<my_custom_module>/views

Step 2: Now add following lines in function display().

$this->lv->multiSelect = false; //This removes Check Box       
$this->lv->quickViewLinks = false; //This removes Edit Link
P.S. If your copied file does not have function display, you will have to add that from code above.

Step 3: This should be it, just refresh the list view and you should be able to see the effect instantly, no Quick Repair and Rebuild required.


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 This email address is being protected from spambots. You need JavaScript enabled to view it.

Thank you.
Download attachments:
  • No Comments Found.
Post your comment