Remove or Hide Create button

Hi,
You can check modules/Contacts/Menu.php first.
After that goto custom/Extension/modules/Contacts/Ext/Menus/Menu.php. Create the file if it doesn’t exist.

In this file:
unset($module_menu);

This will clear all your menu items.
Now you can add the items in $module_menu from the original file or maybe add some custom items.

Hi All,

This is a just simple trick u can try.

If your scenario is to not create any record by clicking Create button then follow the step.

  1. Copy modules//controller.php into custom/modules//controller.php
  2. Add these lines inside the function action_editview. (If this function is not available then create the function.)

$_REQUEST // get all contains all request variable and value

if (array_key_exists(“record”,$_REQUEST)) // Check whether the record key is available in the request. For new records the key is not present
{
$this->view = ‘edit’; //If the record key exists then record can be edited
}
else
{
$this->view = ‘noacesss’; // if the record key is not available that means u cannot create a new record AND it displays a blank page.
}

Will update soon if i get a better solution.

Thanks & Regards
Arsh

Hi

Sorry to bump old thread but I’m trying to do this for Documents modules, which seems to have no view.list.php file, do you know how I can achieve this for Documents module?

Many Thanks

Luke

It is now simple step to remove anything from interfaces , by using this free plugin

https://store.outrightcrm.com/product/suitecrm-global-hide-manager/

Please download this free plugin to use this feature. It is pretty simple and straight forward.

It works on both Ajax and Not ajax UI.

https://store.outrightcrm.com/product/suitecrm-global-hide-manager/

Hi Pukis,
you hide create button from:- modules/Accounts/Menu.php
From that path you comment your “edit” code then quick repair and rebuild.