Results 1 to 3 of 3

Thread: How to remove 'Delete' button?

  1. #1
    robind2 is offline Member
    Join Date
    Apr 2010
    Posts
    16

    Default How to remove 'Delete' button?

    Hi, I have a custom module for Clients, and along the top of the DetailView, there is a 'Delete' button. Does anyone know how I can remove that button?

    Thanks,
    D

  2. #2
    robertbmirth is offline Sugar Community Member
    Join Date
    Jun 2010
    Location
    Irvine, CA
    Posts
    345

    Default Re: How to remove 'Delete' button?

    Find your detailviewdefs.php file for your custom module. It should be under modules/(module_name)/metadata. If you've yet to install the module, you can edit this directly from your package and be upgrade safe, if not it is best to copy this file to custom/modules/(module_name)/metadata and edit that file. Once there, go to $viewdefs[(module_name)]['DetailView'][templateMeta']['form']['buttons'] and remove the delete entry. Repair/rebuild and you should be good to go.
    Robert Beckman
    Software Engineer
    Mirth Corporation

  3. #3
    robind2 is offline Member
    Join Date
    Apr 2010
    Posts
    16

    Default Re: How to remove 'Delete' button?

    That worked great Robert. Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I remove delete button in listview
    By stripathy in forum Help
    Replies: 7
    Last Post: 2010-10-15, 03:35 PM
  2. Replies: 8
    Last Post: 2010-08-19, 06:05 AM
  3. Remove "Delete" button
    By dskanth in forum Developer Help
    Replies: 7
    Last Post: 2009-07-10, 02:59 PM
  4. remove delete button from listview
    By mikesolomon in forum Developer Help
    Replies: 13
    Last Post: 2008-10-02, 10:14 AM
  5. Replies: 0
    Last Post: 2006-04-19, 04:37 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •