Results 1 to 2 of 2

Thread: Hiding Fields Based on a Value from Another Module

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

    Default Hiding Fields Based on a Value from Another Module

    Hi,

    My company had a 3rd party come in and do some customization for us, including creating custom modules.

    Some background info: there are two types of contacts, lets call them contact1 and contact2. Contact1 and Contact2 are related to each other using a relationship table in the database that contains each of their sugar guid's.

    My question is this: in the Contact1 module, I have to selectively show a few fields based on the a value set on the related contact in Contact2. So, for example, if "Field" is set to "A" on Contact2, show these special fields in the edit, detail, and list views on Contact1. If "Field" is set to "B" on Contact2, do NOT show the fields on Contact1.

    Now, if the field we're checking against was in the same module, it would be an easy task to do in DevToolKit, but its not. Its on another module, for which there is a relationship to the current record in the current module to.

    Is this in anyway do-able in DevToolKit? What would have to be different?

    Thanks!

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: Hiding Fields Based on a Value from Another Module

    One way to do this is to create a view.detail.php (and view.edti.php) and get the related module bean, check the value, and if you shouldn't show the field output some javascript to display: none on that element.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2009-12-11, 02:23 PM
  2. Hiding the tab of a new Module based on Role
    By mbuttrey01 in forum Help
    Replies: 6
    Last Post: 2009-07-25, 10:36 AM
  3. Question regarding hiding panels in EditView based on dropdown
    By jim.thornton in forum Developer Help
    Replies: 5
    Last Post: 2009-04-21, 09:41 PM
  4. Hiding standards fields of a stock module
    By DN667 in forum Developer Help
    Replies: 17
    Last Post: 2009-03-12, 03:18 PM
  5. Hiding values based on team
    By mrobertson in forum Developer Help
    Replies: 4
    Last Post: 2006-08-03, 12:33 AM

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
  •