Results 1 to 3 of 3

Thread: Custom Fields-do I need to use Logic Hooks??

  1. #1
    ctaylor2410 is offline Member
    Join Date
    Jul 2008
    Posts
    16

    Question Custom Fields-do I need to use Logic Hooks??

    Hi,

    This is my third post so hopefully 3rd time lucky I may get a response!

    In version 5.0g I have created a custom tick box to identify if an opportunity has been archived (archived) and a field which represents the location where they are archived (this is made up of two fields (arch_box and arch_cd) both of which are numeric).

    In detail view I would like to reference the archive tick box in the archive location field (as well as the arch_cd and arch_box field).

    For example if the archived box is checked but both arch_box and arch_cd are empty I need it to show as 'Archived, No location' , likewise if arch_cd and arch_box are populated I need it to show 'Archived, and then the location' and similar for if the box is unchecked I need to show' Not Archived'.


    My problem is I don't know where to put the code. Do I do it by using the logic hooks?

    Hope I have made it clear what i want to do

    Christina

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

    Default Re: Custom Fields-do I need to use Logic Hooks??

    Look at either overriding the modules\YOURMODULE\metadata\detailviewdefs.php by putting it into custom\modules\YOURMODULE\metadata\ and adding a customCode area for that location or overriding custom\modules\YOURMODULE\views\view.detail.php or something like that. The former will probably be your best bet. Add a custom code piece in there. Search the Sugar code base for "customCode" for how that area works or search the forums here or the wiki.

    Good luck!

  3. #3
    ctaylor2410 is offline Member
    Join Date
    Jul 2008
    Posts
    16

    Default Re: Custom Fields-do I need to use Logic Hooks??

    Thanik you I will try it toady

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 2008-06-16, 06:35 PM
  2. upgraded to 4.5.1e, received "Metadata for table tracker does not exist"
    By sfgeorge in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-09-03, 02:24 PM
  3. Replies: 0
    Last Post: 2006-12-20, 11:39 PM
  4. Asterisk Patch 1.1.0 Crash on logon
    By skyracer in forum Help
    Replies: 6
    Last Post: 2006-07-08, 06:30 AM
  5. Replies: 7
    Last Post: 2006-06-06, 07:56 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
  •