Results 1 to 6 of 6

Thread: How to hide all 'select' and 'clear' buttons for users?

  1. #1
    Milano2 is offline Member
    Join Date
    Dec 2008
    Posts
    5

    Default How to hide all 'select' and 'clear' buttons for users?

    Hi,

    I want to hide all 'select' and 'clear' buttons next to 'assigned to:', 'related to:' etc text fields for all users/employees in tasks, calls, meeting, notes modules. Only administrators should see this buttons.

    Also, users could not see this ajax script, which show another users when I type some letter in this field.
    I just don't want to that users/employees see each other (even names). It is important for me.

    ps. and sorry for my English I hope that someone understand me
    My SugarCRM version: 5.1.0b


  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to hide all 'select' and 'clear' buttons for users?

    Add into field defs at the editviewdefs.php the code

    PHP Code:
    'displayParams' => array(
      
    'hideButtons' => true,
    ), 
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    Milano2 is offline Member
    Join Date
    Dec 2008
    Posts
    5

    Default Re: How to hide all 'select' and 'clear' buttons for users?

    Andopes, I try and try but nothing happens. - I still see this buttons and ajax popup. I'm not php programmer so could you add this code on one example files? Pleasssse...

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: How to hide all 'select' and 'clear' buttons for users?

    Which version are you using?
    Go to Admin -> Repair -> Quick Repair and Rebuild.

    Regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    Milano2 is offline Member
    Join Date
    Dec 2008
    Posts
    5

    Default Re: How to hide all 'select' and 'clear' buttons for users?

    without any effect... maybe I have added this code in wrong place in file. Can you show me some example of implemented code? Then I see how it should look like.

  6. #6
    mangesh1757 is offline Sugar Community Member
    Join Date
    Jan 2010
    Location
    India
    Posts
    226

    Default Re: How to hide all 'select' and 'clear' buttons for users?

    Hi Milano2,

    Just a sniff of my code :

    location of file : <Root_Directory>\custom\modules\<Module_Name>metad ata\editviewdefs.php

    /**************************************************/
    5 =>
    array (
    0 =>
    array (
    'name' => 'contacts_acc_tourdetails_name',
    'label' => 'LBL_CONTACTS_ACC_TOURDETAILS_FROM_CONTACTS_TITLE' ,
    'displayParams' =>
    array (
    'size' => 65,
    'hideButtons' => true,
    ),
    ),
    1 => NULL,
    ),
    /**************************************************/

    Hope if it helps anybody.

    Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to hide users?
    By rehlers in forum General Discussion
    Replies: 4
    Last Post: 2008-11-06, 04:42 PM
  2. Replies: 3
    Last Post: 2008-07-27, 06:30 PM
  3. Select buttons do not work?
    By chrish in forum Help
    Replies: 1
    Last Post: 2007-11-08, 02:24 PM
  4. Replies: 1
    Last Post: 2007-10-12, 06:49 PM
  5. Replies: 0
    Last Post: 2007-08-11, 03:45 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
  •