How to create a DropDown field similar to Teams/Email Address field in SugarCRM

Hi All,

I would like to create a DropDown field with plus button to it. For example we have teams field or email address field where we have plus button and which allows us to add multiple emails or teams to it. In the similar way I would like to create a DropDown field with plus button and on click of plus button it should show one more DropDown field. Is it possible in SugarCRM without affecting the core functionality? I would like to know the possibility and best way to implement it. 

Any kind of ideas will be helpful to me to move forward.

Parents
  • What you are probably referencing to, is a new module with a relationship (one-to-many or many-to-many depending on the scope).

    Then what I am hearing is that you don't want to use a normal subpanel for it, but a different UI.

    Perhaps a good example for it would be similar to how Tags work.

    Technically speaking, and still high level you would need:

    • A module
    • A relationship/collection between the new module and the current module (read more here Using and Defining Collections in Sugar )
    • A custom field type ui handler (look at clients/base/fields/tag/* for an example), which you would add into the custom/clients/base/fields/<fieldtype>/ directory

    Hope it helps to give you some guidance to get started

    --

    Enrico Simonetti

    Sugar veteran (from 2007)

    www.naonis.tech


    Feel free to reach out for consulting regarding:

    • API Integration and Automation Services
    • Sugar Architecture
    • Sugar Performance Optimisation
    • Sugar Consulting, Best Practices and Technical Training
    • AWS and Sugar Technical Help
    • CTO-as-a-service
    • Solutions-as-a-service
    • and more!

    All active SugarCRM certifications

    Actively working remotely with customers based in APAC and in the United States

  • Hi Enrico,

    Sorry If you understood it in a wrong way. My requirement is like this, I would like to create a DropDown field where we can have the ability to add plus button to the field, so on click of that button it should give one more DropDown field. I am just checking the feature similar to Teams field where we can have plus button to add next value in the field. Can you please suggest me how to implement this to DropDown field.

Reply
  • Hi Enrico,

    Sorry If you understood it in a wrong way. My requirement is like this, I would like to create a DropDown field where we can have the ability to add plus button to the field, so on click of that button it should give one more DropDown field. I am just checking the feature similar to Teams field where we can have plus button to add next value in the field. Can you please suggest me how to implement this to DropDown field.

Children