Results 1 to 4 of 4

Thread: Alert on a specific value on custom field

  1. #1
    carlo75 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    86

    Question Alert on a specific value on custom field

    Hi to all,
    I need some help to configure an alert on a specific custon fields on Opportunities module.

    The custom fields is a numeric value (€) if the value is <10.000 nothing happens,
    but if the value is >10.001 I would an alert that advise me...

    something like the required fields error, just a red advise on the field when I save,
    nothing else...

    is it possible? Any idea?
    Thanks again in advance!

  2. #2
    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: Alert on a specific value on custom field

    You need to create a logic_hook before_save which send you an email in such situation.

    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.

  3. #3
    carlo75 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    86

    Default Re: Alert on a specific value on custom field

    Hi André.
    there's a post with the step, that I've to follow,
    some "how to"... thanks in advance.

    I think a simple javascript function can help me,
    but I don't know where I can find the code to insert.
    Something like that:

    <script language="Javascript">
    function isnum(obj) {
    if (isNaN(obj.value) || parseInt(obj.value)<0 || parseInt(obj.value) > 10000)
    {
    alert('Number over 10.000');
    obj.value="";
    obj.focus();
    }
    }
    </script>

  4. #4
    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: Alert on a specific value on custom field

    Have a look on this thread

    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 2008-12-31, 06:34 AM
  2. relationship-specific custom fields (contact<->account)
    By dbischoff in forum Developer Help
    Replies: 1
    Last Post: 2007-09-26, 10:57 PM
  3. Replies: 7
    Last Post: 2007-07-13, 01:38 PM
  4. Custom fields in Alert Template Condition?
    By prismusa in forum Help
    Replies: 2
    Last Post: 2007-01-18, 05:30 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
  •