How to display Country name instead of country code in form?

Buddy 1
Tera Contributor

I have a country field ,which will be display value based on account field in the form.

Currently the country field is displaying country code , but i want it to display country name . 

ex: Instead of CN , i want it like china.

Can someone help?

 

Thanks in advance

4 REPLIES 4

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

Is the country field a reference field to some table. if yes then you will have to go to that table configure->dictionary of the country name field and make the display value as true and for field country code make display field as false

 

Saurav11_0-1666197620415.png

 

Also, incase if it not a reference field then please paste the current code we can modify it accordingly.

 

Please mark my answer as correct based on Impact.

 

 

sachinbhasin11
Tera Guru
Tera Guru

I don't recommend modifying the display value of core tables including the country table. Can you elaborate on how is CN populated currently 

Currently the CN is populated based on the account value we choose in the form.

Based on the account field , the country fields value is populating. Is that possible with reference qualifier, or how?

Hi, im currently facing a similar situation where im using the table core_country on a form and its displaying the country code instead of the name. Did you reach a solution?