The CreatorCon Call for Content is officially open! Get started here.

How to display country code as country name?

Buddy 1
Tera Contributor

I have a country field in 'ABC' case form, Based on account field in that form , the country field is displaying the value for ex: DE , but i have to achieve this as Germany , i.e., when account is selected , the country field should display as Germany instead of DE. 

Basically the country field is dot-walked from form layout,,--> account.country

When checking on configure dictionary , the table name is core_company
When i click on show country field: These are the below info 

Table: sn_customerservice_case

Field :account

Type: reference

Reference: customer_account

Reference Qual :new global.GenericUtils().getContactAccounts(current.contact.user_name );

Max Length : 32

 

 

How to achieve this with client script , i.e.., make the country field display country name instead of country code?

 

Thanks in advance!

10 REPLIES 10

Bhagesh chavan
Tera Contributor

Hello,

 

You can go to Configure --> Form layout and remove the country field and add Country.name field on form. 
This is reference field so it will auto populate the data.