Results 1 to 8 of 8

Thread: validations in sugarcrm

  1. #1
    bathi741 is offline Sugar Community Member
    Join Date
    Mar 2008
    Posts
    18

    Default validations in sugarcrm

    I have added some custom fields in SugarCRM cases module throuhg studio. Is it possible to add screen validations?

  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: validations in sugarcrm

    Hi, bathi741

    What kind of validation are you planning to add?
    Which version of sugar?

    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
    junk7478 is offline Junior Member
    Join Date
    Jan 2008
    Posts
    4

    Default Re: validations in sugarcrm

    version 5.0

    added a custom dropdown. If a team selects an specific value in dropdown and selects a team 'X", then give a error message

  4. #4
    anamikakhadwal's Avatar
    anamikakhadwal is offline Sugar Community Member
    Join Date
    May 2007
    Location
    India
    Posts
    82

    Default Re: validations in sugarcrm

    hi ,
    please try this
    in custom/modules/yourmodule/metadata/editviewdefs.php
    add this to your drop down array
    'type' => 'combobox',

    then made a folder in includes/Sugarfields/Fileds/Combobox/
    (same as definrd in Enum folder) with files EditView.tpl andSugarFieldCombobox.php
    in editView.tpl u can add attribute "onchange=yourvalidation()" in "select " tag

    and then define this function in
    modules/yourmodule/yourmodule.js



    i hope it will work


    Thanks

  5. #5
    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: validations in sugarcrm

    Hi, anamikakhadwal

    I´ll try that asap!

    It seems to be right wonderful.

    Great job!

    Cheers

    André Lopes
    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.

  6. #6
    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: validations in sugarcrm

    Hi, anamikakhadwal

    We tried this for creating a custom Address field and it works wonderfully.
    Very thank you.

    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.

  7. #7
    karthikeyanr is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    11

    Default Re: validations in sugarcrm

    Hi ,

    I need a similar validation for dropdown in cases but it should throw an alert when the user clicks on save button.
    how this could be done.

    Thanks,
    Karthik

  8. #8
    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: validations in sugarcrm

    Hi Karthik

    You just need to define a customCode for the save button adding the alert() before check_form.

    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: 1
    Last Post: 2008-02-22, 04:25 PM
  2. Inbound Email AutoReply Cancelled
    By jstevensr in forum Help
    Replies: 3
    Last Post: 2006-12-19, 12:43 PM
  3. Replies: 61
    Last Post: 2006-10-22, 08:40 AM
  4. Merge Contacts show sql error
    By hheckner in forum General Discussion
    Replies: 5
    Last Post: 2006-10-04, 01:57 PM
  5. Serious issue with sugarcrm 3.5.1.c
    By wp.rauchholz in forum Help
    Replies: 17
    Last Post: 2005-12-01, 07:22 AM

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
  •