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 Mar 16 '16 at 14:09
  • While inspecting the element am getting the below "<label for="CurrencyIsoCode"><span class="assistiveText">*</span>Currency</label>" – uma451 Mar 16 '16 at 14:17
  • Am not getting any id@Ratan – uma451 Mar 16 '16 at 14:18
  • when I inspect a currencyIsoCode field on an Edit page - the id = CurrencyIsoCode – cropredy Mar 16 '16 at 14:40
  • Yes the id is "CurrencyIsoCode" – uma451 Mar 17 '16 at 3:32

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.