Results 1 to 5 of 5

Thread: Default value in a standard field

  1. #1
    dusker is offline Senior Member
    Join Date
    Nov 2008
    Posts
    31

    Default Default value in a standard field

    Hi,
    this is probably trivial, but i'm not sure how to set amount field in Opportunities module, have a default value (zero in my case).
    I also wonder how to make this field, read-only in a form - the field will be updated by a trigger in the db itself.

    thanks so much for help

    greetings
    peter

  2. #2
    ptemplin7 is offline Sugar Community Member
    Join Date
    Jun 2007
    Location
    Puget Sound Washington
    Posts
    380

    Default Re: Default value in a standard field

    You can set the default in the Studio or in the vardefs file in the custom directory. (Use the studio!)

    As too read-only do a search there is lots of discussion about this!
    Basically, the best way is to use the studio to remove the field from the editview and leave in the detailview. That way it is seen when the record is opened but but able to be edited. If it needs to be seen int he editview I would search and use the suggestion presented. Don't have a direct link at the moment.

    Good Luck, Paris

  3. #3
    dusker is offline Senior Member
    Join Date
    Nov 2008
    Posts
    31

    Default Re: Default value in a standard field

    Studio won't let me set default value for amount field in Opportunities
    I already tried creating a custom vardefs file in custom directory (maybe i did something wrong, could You assist?) and it didnt help

  4. #4
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Default value in a standard field

    Hello,

    You can set the default amount for the opportunity by creating the following (make sure you are in developer mode):

    custom/Extension/modules/Opportunities/Ext/Vardefs/[filename].php

    PHP Code:
    $dictionary['Opportunity']['fields']['amount']['default_value'] = '0.00'

    then go to the admin area and click Repair and Quick Repair and Rebuild
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  5. #5
    kbensch is offline Junior Member
    Join Date
    Apr 2007
    Posts
    3

    Default Re: Default value in a standard field

    Hi

    To bump an earlier question, how can I change the default value for standard fields. I need to change the default duration for meetings and also need to switch off the reminder by default. I further would like to change the meeting duration minutes dropdown from the standard 15 minute intervals to 10 minute intervals.

    Thanks

    Kobus

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 19
    Last Post: 2011-04-22, 09:24 PM
  2. List View Population
    By atin in forum Help
    Replies: 5
    Last Post: 2008-04-24, 05:57 AM
  3. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 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
  •