Results 1 to 7 of 7

Thread: Remove Full Form Button in QuickCreate View

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Remove Full Form Button in QuickCreate View

    HI,

    I have a module that when under Accounts I click create and it opens the quick create view and this includes everything that I need a user to fill in so no need to go to full form. So how can I remove the Full Form Button from the QuickCreate View?

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: Remove Full Form Button in QuickCreate View

    Hi to hide full form button you have to edit the file: include/editview/subpanelquickcreate.php
    and change the line:
    $this->ev->defs['templateMeta']['form']['buttons'] = array('SUBPANELSAVE', 'SUBPANELCANCEL', 'SUBPANELFULLFORM');

    to:

    $this->ev->defs['templateMeta']['form']['buttons'] = array('SUBPANELSAVE', 'SUBPANELCANCEL');
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  3. #3
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: Remove Full Form Button in QuickCreate View

    Hi,

    I need it for just the contact subpanel for example. So I added the following to a custom view.edit.php

    $buttons_to_remove = array('SUBPANELFULLFORM');
    foreach($this->ev->defs['templateMeta']['form']['buttons'] as $id => $button){if(in_array($button, $buttons_to_remove)){
    unset($this->ev->defs['templateMeta']['form']['buttons'][$id]);}}


    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  4. #4
    Captivea's Avatar
    Captivea is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    52

    Lightbulb Re: Remove Full Form Button in QuickCreate View

    Did you make a Feature Request on this one ?
    Should be great to have only a definition to add in quickcreatedefs.php to define if the button should be displayed or not.
    Captivea
    Partenaire officiel SugarCRM France
    Découvrez nos solutions CRM basées sur SugarCRM
    -----
    695 av. Paul Louis Merlin - "Espace Merlin" - 73800 Montmélian
    Tél : 08 11 69 63 30 – Fax : 09 72 13 05 20

  5. #5
    antoinebelmont is offline Sugar Community Member
    Join Date
    Jul 2011
    Posts
    25

    Default Re: Remove Full Form Button in QuickCreate View

    Hi, i need to do exactly the oposite thing, when the user click the "new" button, they must be redirected directly to the full form view, what can i do?

    Thanks for advance

  6. #6
    aniruddh_vaghasia is offline Junior Member
    Join Date
    Oct 2011
    Location
    Ahmedabad,Gujarat,India
    Posts
    10

    Default Re: Remove Full Form Button in QuickCreate View

    Hi friend,
    if you are using the view.edit.php to edit that sub panel .
    add this line in the function _construct()
    $this->useForSubpanel = false;
    this will help you .

    Aniruddh Vaghasia
    iNET Process PVT.LTD
    India.

  7. #7
    antoinebelmont is offline Sugar Community Member
    Join Date
    Jul 2011
    Posts
    25

    Default Re: Remove Full Form Button in QuickCreate View

    Thanks for the answer, can you explain a little bit more your answer?, is that an upgrade safe approach?, well, I'm going to explain more, maybe this is another problem than the problem above, i'm using sugarCRM CE 6.2, in this version the quick create form appear within the subpanels, i need to hide, change or eliminate the quick create form and send directly the user to the full form or edit view from the module (for example, the opportunities subpanel below the accounts detail view) because i have custom functionality within the opportunities module, i hope i´m explain better, thanks for your time, i hope you have a solution

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: 5
    Last Post: 2012-02-15, 10:06 AM
  3. Replies: 3
    Last Post: 2010-09-27, 07:22 PM
  4. Remove Shortcut bar & quickcreate form
    By vishwasrao in forum Developer Help
    Replies: 3
    Last Post: 2009-02-18, 05:52 PM
  5. Replies: 3
    Last Post: 2008-07-30, 06:22 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
  •