Results 1 to 5 of 5

Thread: custom fields

  1. #1
    chris.marsden is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    57

    Default custom fields

    Hi,

    I have a slight problem in which when im adding new custom fields in to the accounts module they are not showing up in the list, any ideas???

  2. #2
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Default Re: custom fields

    Quote Originally Posted by chris.marsden View Post
    Hi,

    I have a slight problem in which when im adding new custom fields in to the accounts module they are not showing up in the list, any ideas???
    Hello chris you must edit listviewdefs.php (that will be in /custom/modules/accounts/metadata/ ... if the file is not there then it will be in /modules/accounts/metadata) adding your custom fields
    For example if you create the field phone it will be stored in accounts_cstm and its name will be phone_c so this name you must use when edit listviewdefs
    Best regards

  3. #3
    chris.marsden is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    57

    Default Re: custom fields

    is it possible to delete the standard ones this way without breaking it?

  4. #4
    garciasanchezdaniel's Avatar
    garciasanchezdaniel is offline Sugar Community Member
    Join Date
    Aug 2011
    Location
    Spain
    Posts
    403

    Thumbs up Re: custom fields

    Quote Originally Posted by chris.marsden View Post
    is it possible to delete the standard ones this way without breaking it?
    yes, if you don't want to see any standar field, you can comment its code
    For example, in listviewdefs.php, you do not want to see the standard field 'name', then you comment its code:
    Code:
    /*'name' => array(
        ....
    ),*/
    regards

  5. #5
    ashdwi1's Avatar
    ashdwi1 is offline Sugar Community Member
    Join Date
    May 2008
    Location
    Noida
    Posts
    198

    Default Re: custom fields

    Hi,

    You should use studio to put your custom fields into layouts , that will automatically create your custom layout files.
    thanks
    Almost available at skype or gtalk at ashdwi1.

    SugarForge Project:
    http://www.sugarforge.org/projects/gmapdirection
    Email: ashdwi1@gmail.com
    Mob: +919005468298

    Hire us at Odesk at
    https://www.odesk.com/users/~~b9eff8ff219fd705

    Hire Us at Elance at:
    http://ashdwi1.elance.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2012-04-06, 12:08 AM
  2. Replies: 0
    Last Post: 2010-02-06, 08:32 AM
  3. Tie Custom Module Fields to Contact Fields
    By DaneGerous in forum Developer Help
    Replies: 1
    Last Post: 2009-04-20, 03:05 PM
  4. Replies: 1
    Last Post: 2007-02-06, 09:21 PM
  5. Replies: 0
    Last Post: 2006-12-20, 11:39 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
  •