Modify presentation of Multi-select field in Sage CRM 2017

By | January 25, 2018

Recently on the community forums, we came across a question where the user wanted to show value of selected Multi-Select field on a new line instead of its default behavior of being separated by a comma. Read on to see how it can be done.

New Stuff: Highlight Rows and Columns of Grid in Sage CRM

By default multi-select fields is displayed as shown below:
DefautViewNow question is if we can display each of the selected option one below another. Answer is yes and this can be achieve by writing simple client side code. You need to write the below code in custom content of screen containing Multi-Select field. Follow below given steps:

  1. Login to Sage CRM
  2. Navigate to below path.
    Administration | Customization | Company
  3. Navigate to Screens tab and click on the CompanyBoxLong List.
  4. Copy and Paste below code into the CustomContent section.
    <script>
    crm.ready(function()
    {
    var myfield = crm.fields(“comp_workingarea”);
    if (myfield.getMode() == “view”)
    {
    Regex = /,/g;
    myfield.text(myfield.text().replace(Regex, “<BR>”))
    }
    });
    </script>
  5. Click on Save Button.

Once done, you will observe that the Multiselect field will be visible as shown below.
NewViewNote:

  1. Do backup Sage CRM database before trying out above steps.
  2. Make sure to alter above code with your multi-select field name.

About Us
Greytrix a globally recognized Premier Sage Gold Development Partner is a one stop solution provider for Sage ERP and Sage CRM needs. Being recognized and rewarded for multi-man years of experience, we bring complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third party add-on development and implementation expertise.

Greytrix has some unique integration solutions for Sage CRM with Sage ERPs (Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100Sage 500 and Sage 300).We also offer best-in-class Sage ERP and Sage CRM customization and development services to Business Partners, End Users and Sage PSG worldwide. Greytrix helps in migrating of Sage CRM from Salesforce | ACT! | SalesLogix | Goldmine | Sugar CRM | Maximizer. Our Sage CRM Product Suite includes Greytrix Business Manager, Sage CRM Project Manager, Sage CRM Resource Planner, Sage CRM Contract Manager, Sage CRM Event Manager, Sage CRM Budget Planner, Gmail Integration, Sage CRM Mobile Service Signature and Sage CRM CTI Framework.

Greytrix is a recognized Sage Rockstar ISV Partner for GUMU™ Sage Enterprise Management – Sage CRM integration also listed on Sage Marketplace.

For more information on our integration solutions, please contact us at sage@greytrix.com. We will be glad to assist you.