I have opportunity car set (custom object , Master object) which has a related list in that "service"(custom object,child object). In service there is a standard picklist field called "Currency".

It has two values.

  1. EUR-Euro

  2. DZD-Algerian Dinar

I need to populate the currency field value as "DZD-Algerian Dinar" in service object if Opportunity Car set "country code"(Custom field) equals to DZ. Like this according to the country code, currency field value needs to get populated.

I am able to populate a text field and lookup field using below code. But i am unable to populate the currency field



Please help me out!!! Thanks in advance !!

  • hmm.. you need to inspect the currency field and check the name of the field. it will be looks like CF00NA0000005JzZX_lkid. Just mouse over your currency field click right side and inspect element. You can see and selectoption. you need use that selectlist Id.
    – Ratan Paul
    Commented Mar 16, 2016 at 14:09
  • While inspecting the element am getting the below "<label for="CurrencyIsoCode"><span class="assistiveText">*</span>Currency</label>"
    – uma451
    Commented Mar 16, 2016 at 14:17
  • Am not getting any id@Ratan
    – uma451
    Commented Mar 16, 2016 at 14:18
  • when I inspect a currencyIsoCode field on an Edit page - the id = CurrencyIsoCode
    – cropredy
    Commented Mar 16, 2016 at 14:40
  • Yes the id is "CurrencyIsoCode"
    – uma451
    Commented Mar 17, 2016 at 3:32

1 Answer 1


Like @Cropedy said you just need to add CurrencyIsoCode in url as


DZD can be your picklist value. there will a chance where picklist label and value is not same.

Inspect element the picklist and check the correct value

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .