Results 1 to 6 of 6

Thread: changing subpanel button label/text and removing full form button

  1. #1
    vantagejuan is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    70

    Default changing subpanel button label/text and removing full form button

    I'm trying to do some customization to the history subpanel and there are two things left for me to do.

    1. i want to change the text on the button that says 'create note or attachment' to 'add client document'. i've been looking all over the system and can't find a label or title for this anywhere. i've looked in include/generic/sugarwidgets/sugarwidgetsubpanelcreatenotebutton.php and other places and can not find where to do this anywhere.

    2. I want to remove the button that says "full form" that appears in the subpanel after you click the "create note or attachment button". i've used the extended defnitions method to remove buttons from the inital subpanel view, but don't know what to do about removing buttons from the view after you click the "create note or attachement" button.

    any help in the direction of where to go to find the files to edit would be greatly appreciated.

  2. #2
    vantagejuan is offline Sugar Community Member
    Join Date
    Dec 2007
    Posts
    70

    Default Re: changing subpanel button label/text and removing full form button

    i never figured out how to remove the full form button, but I did find I needed to go to Admin/Repair/Clear Template Data Cache to get the label change to finally show up.

    The label for the create attachment button is 'LNK_NEW_NOTE' => which I changed in custom/modules/notes/language/en_us.lang.php before clearing the template data cache.

    The button now reads what I put in the file.

    I would still appreciate any help with removing the full form button.

  3. #3
    nmteck is offline Member
    Join Date
    Jul 2010
    Posts
    5

    Default Re: changing subpanel button label/text and removing full form button

    Quote Originally Posted by vantagejuan View Post
    I would still appreciate any help with removing the full form button.
    Does anyone have any suggestions on this one? It's been a while and no response but this seems like something that should be simple to change. If anyone has any input please post.

  4. #4
    m3suriya is offline Senior Member
    Join Date
    Jan 2010
    Location
    Chennai, INDIA
    Posts
    129

    Default Re: changing subpanel button label/text and removing full form button

    hi to hide full form button
    go to -> include/editview/subpanelquickcreate.php

    change this
    $this->ev->defs['templateMeta']['form']['buttons'] = array('SUBPANELSAVE', 'SUBPANELCANCEL', 'SUBPANELFULLFORM');
    as
    $this->ev->defs['templateMeta']['form']['buttons'] = array('SUBPANELSAVE', 'SUBPANELCANCEL');

    if you get safe upgrade pls update.
    Regards & Thanks
    UDAY
    __________________
    WinXP / SugarCE v5.5 / Apache 2.2 / PHP 5.2.11 / MySQL 5.1.36

  5. #5
    swaroops1 is offline Senior Member
    Join Date
    Jul 2010
    Posts
    43

    Lightbulb Re: changing subpanel button label/text and removing full form button

    Thanks Worked like charm ! ! !

  6. #6
    sarita_1 is offline Junior Member
    Join Date
    Oct 2011
    Posts
    8

    Default Re: changing subpanel button label/text and removing full form button

    Hello,

    I want to implement just reverse of this means I have to add an extra button "Save and create Task".
    Can anybody help me to do this ?

    Thanks in advance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 10
    Last Post: 2012-03-12, 08:12 AM
  2. Replies: 0
    Last Post: 2009-06-29, 12:13 PM
  3. Replies: 2
    Last Post: 2009-06-01, 04:11 PM
  4. How to make create button to open full form
    By sswamy in forum Developer Help
    Replies: 1
    Last Post: 2008-12-07, 09:15 AM
  5. Changing SubPanel Button
    By cpscdave in forum Developer Help
    Replies: 9
    Last Post: 2008-07-21, 03:08 PM

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
  •