Results 1 to 8 of 8

Thread: How to create Dependent dropdown

  1. #1
    gokulakannan is offline Sugar Community Member
    Join Date
    Dec 2011
    Location
    India
    Posts
    37

    Default How to create Dependent dropdown

    Hai Friends,
    I'm new to SugarCRM, i want to create a dependent dropdown.For example im having two dropdowns,
    1) Customer Type
    2)Customer Name
    In the 1st options are (a)Engineering, (b)Polytechnic, (c)Arts & Science
    2nd dropdown contains the name of the customer.
    If i select customer type as Engineering then 2nd should display only the names of engineering colleges.


    Thakns in advance

  2. #2
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    2,224

    Default Re: How to create Dependent dropdown

    Quote Originally Posted by gokulakannan View Post
    Hai Friends,
    I'm new to SugarCRM, i want to create a dependent dropdown.For example im having two dropdowns,
    1) Customer Type
    2)Customer Name
    In the 1st options are (a)Engineering, (b)Polytechnic, (c)Arts & Science
    2nd dropdown contains the name of the customer.
    If i select customer type as Engineering then 2nd should display only the names of engineering colleges.


    Thakns in advance
    Check out this blog post to see how to do it with Sugar Logic.

    http://developers.sugarcrm.com/wordp...ndustry-field/
    Last edited by jmertic; 2012-01-20 at 11:30 AM.
    John Mertic
    Sugar Community Manager

  3. #3
    SagarCRM's Avatar
    SagarCRM is offline Sugar Community Member
    Join Date
    Oct 2011
    Location
    Mumbai, Maharashtra, India
    Posts
    111

    Default Re: How to create Dependent dropdown

    One of the way is doing it by Ajax...
    --

    Thanks & Regards,

    Sagar Salunkhe
    Mumbai, Maharashtra, INDIA

    sagar.salunkhe1991@gmail.com

    ~~ IT professionals never dies, they just go Offline... ~~


    sugar development and support services:- indian.sugarbean@gmail.com

  4. #4
    gokulakannan is offline Sugar Community Member
    Join Date
    Dec 2011
    Location
    India
    Posts
    37

    Default Re: How to create Dependent dropdown

    Quote Originally Posted by jmertic View Post
    Hai jmertic,
    i go through the blog u gave and tried the steps in that but nothing happens. Give me some other idea to use dependent dropdown

  5. #5
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: How to create Dependent dropdown

    Quote Originally Posted by gokulakannan View Post
    Hai jmertic,
    i go through the blog u gave and tried the steps in that but nothing happens. Give me some other idea to use dependent dropdown
    Have a look at Chapter 5 (pages 193-205) of the 6.3 Developer Guide. It's got explanation of Sugar Logic, and many code examples.

    https://www.sugarcrm.com/network/hel...uide_6.3.0.pdf

    Sugar DeveloperZone - SugarCRM Developer Documentation, Sugar Documentation

    Sugar Developer Zone - SugarCRM Developer Documentation, Sugar Documentation

    Post back here with your solution !

  6. #6
    gokulakannan is offline Sugar Community Member
    Join Date
    Dec 2011
    Location
    India
    Posts
    37

    Default Re: How to create Dependent dropdown

    Quote Originally Posted by Chris_C View Post
    Have a look at Chapter 5 (pages 193-205) of the 6.3 Developer Guide. It's got explanation of Sugar Logic, and many code examples.

    https://www.sugarcrm.com/network/hel...uide_6.3.0.pdf

    Sugar DeveloperZone - SugarCRM Developer Documentation, Sugar Documentation

    Sugar Developer Zone - SugarCRM Developer Documentation, Sugar Documentation

    Post back here with your solution !
    Thanks for your valuable post!
    i go through the links u gave. First i created a drop-down in accounts module named sub_industry and added to the edit and detailed view. After that i copied the code to the vardefs.php of the accounts module.
    then i tried to quick repair and rebuild but some errors i got.

    whether the steps i done was correct or not? Guide to do the need

  7. #7
    Chris_C's Avatar
    Chris_C is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Connecticut
    Posts
    227

    Default Re: How to create Dependent dropdown

    Quote Originally Posted by gokulakannan View Post
    Thanks for your valuable post!
    i go through the links u gave. First i created a drop-down in accounts module named sub_industry and added to the edit and detailed view. After that i copied the code to the vardefs.php of the accounts module.
    then i tried to quick repair and rebuild but some errors i got.

    whether the steps i done was correct or not? Guide to do the need
    Depends on the error messages you received.

    Take the exact text of the error messages, and google the Sugar Dev guide.
    Also google the internet with keywords SugarCRM , plus the exact error text.
    Google should find for you some pages that explain the cause of these errors.
    Post back here your findings and questions/solution!

  8. #8
    Sugar-Daddy is offline Sugar Community Member
    Join Date
    Jun 2011
    Posts
    49

    Default Re: How to create Dependent dropdown

    Quote Originally Posted by SagarCRM View Post
    One of the way is doing it by Ajax... :)
    I see many people say this, but I haven't seen an example. If it is commonly done, then it would be great to see a common example that we could use.

    Thanks!

    :)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. dependent dropdown list
    By shajiuddin in forum Developer Help
    Replies: 4
    Last Post: 2012-05-07, 01:53 PM
  2. How to create Dependent Dropdown for state and city?
    By phpdon in forum Developer Help
    Replies: 10
    Last Post: 2012-02-21, 11:58 PM
  3. Dropdown dependent on TWO fields
    By frown in forum Developer Help
    Replies: 2
    Last Post: 2011-12-11, 08:59 PM
  4. Dependent Dropdown - Help!
    By m3suriya in forum Developer Help
    Replies: 0
    Last Post: 2010-11-27, 06:09 AM
  5. Replies: 3
    Last Post: 2009-11-18, 11:59 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
  •