Drop Down Value Shows the Key and not Display Value

Hey Guys,

We are trying to have a drop down value on a lead be transferred to a text field on an account during lead conversion. Our code is written below. Naics_sector is the account field and industry_sector is the drop down field on the lead. The conversion works, but only the drop down key is being brought into the text field and not the actually display value. How can we get the display value of the drop down brought into the text field? Thanks!

'fieldMapping' =>
array (

'naics_sector_c' => 'industry_sector_c',

Parents
  • Hi Dan Petersen 

    Lead Conversion will copy the field value as it is, so you would need to create another field in Accounts (dropdown whose dropdown list is the same as in Leads) and copy from industry_sector_c in Leads to that custom field.

    At last you can implement the SugarLogic formula "getDropdownValue" in the field naics_sector_c at Accounts which set the value according to value defined in the custom field.

    Eventually this dropdwn custom field in Accounts should not be available in layouts.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
Reply
  • Hi Dan Petersen 

    Lead Conversion will copy the field value as it is, so you would need to create another field in Accounts (dropdown whose dropdown list is the same as in Leads) and copy from industry_sector_c in Leads to that custom field.

    At last you can implement the SugarLogic formula "getDropdownValue" in the field naics_sector_c at Accounts which set the value according to value defined in the custom field.

    Eventually this dropdwn custom field in Accounts should not be available in layouts.

    Regards

    André Lopes
    Lampada Global
    Skype: andre.lampada
Children
No Data