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 display as shown below:
Now 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.
    var myfield = crm.fields(“comp_workingarea”);
    if (myfield.getMode() == “view”)
    Regex = /,/g;
    myfield.text(myfield.text().replace(Regex, “<BR>”))
  5. Click on Save Button.

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

  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 is one stop solution provider for Sage ERP and Sage CRM needs. We provide 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 ERP’s (Sage X3Sage 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 to Sage CRM from ACTGoldmine and other CRM’s.
For more information on our integration solutions, please contact us at [email protected]. We will be glad to assist you.