Results 1 to 8 of 8

Thread: Hide/show a single field based on role

  1. #1
    achavez is offline Junior Member
    Join Date
    May 2007
    Posts
    1

    Default Hide/show a single field based on role

    Hello, I have searched everywhere on the web to see if there's a way to hide a field in a sugar module.

    What I mean is that in accounts, I have a field that has the yearly contract amount, and I don't want other users to see it, but I want them to see the rest of the information.

    Can you please help me or give me some advice on what to do.

    Thanks in advance.
    Alfredo

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Hide/show a single field based on role

    You can't do it through built-in functionality, but you might be able to pull this off via some custom programming using the logic hooks. Not sure if you'd be able to completely remove the field from view, but you should be able to at least mask the value.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    tluolamo is offline Member
    Join Date
    Oct 2006
    Posts
    5

    Default Re: Hide/show a single field based on role

    This would be a customization that you would have to do yourself by changing the underlying source. However I believe 5.0 is supposed to have this functionality in it.

  4. #4
    sidh211 is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    126

    Default Re: Hide/show a single field based on role

    hii achavez

    so are you able to hide the field based on roles as i also want to do the same plss help

    thanks
    sid

  5. #5
    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: Hide/show a single field based on role

    Hi, all.

    You can create a new view into modules/YourModule/views/

    This way you can take control and decide displaying or not some specific field.
    You can browse the default system views and understand how they work.

    Cheers
    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.

  6. #6
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Re: Hide/show a single field based on role

    Quote Originally Posted by achavez
    Hello, I have searched everywhere on the web to see if there's a way to hide a field in a sugar module.

    What I mean is that in accounts, I have a field that has the yearly contract amount, and I don't want other users to see it, but I want them to see the rest of the information.

    Can you please help me or give me some advice on what to do.

    Thanks in advance.
    Alfredo
    Hi,

    FYI, he feature you are looking for comes as standard with PRO/ENT 5.0
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

  7. #7
    sidh211 is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    126

    Default Re: Hide/show a single field based on role

    hii andreops
    but we are using Sugar CE 5.0 and we want to hide som specific field and subpanel depending upon user login is it possible??

    pls help

    regards
    sid

  8. #8
    Anahi is offline Member
    Join Date
    Jun 2008
    Posts
    9

    Default Re: Hide/show a single field based on role

    Hi people,

    Just I'm asking the same question. Is it possible to hide a field depending on the role?

    Thanks,

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2007-04-25, 12:45 PM
  2. hericheacal role based security
    By bhawin13 in forum Developer Help
    Replies: 3
    Last Post: 2006-10-11, 12:09 PM
  3. Replies: 2
    Last Post: 2006-08-22, 09:38 AM
  4. How to make a field read only based on data
    By prismainc in forum Help
    Replies: 0
    Last Post: 2006-06-11, 01:07 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
  •