Translations , need to add German Language also in the below On Change script

prudhviraj1
Tera Guru

When selecting German Language also it was showing English Choices only, so need to include German choices in the script, kindly help me

prudhviraj1_0-1674565429639.jpeg

 

 

7 REPLIES 7

Hi Alex

 

we have a On Change Client script condition based, when the child field choices is depends on Parent field.

When am trying to translate the choices in Thai language the condition is executed 

What was the condition will write in the Client script to enable all the languages.

 

var region = g_form.getValue('please_select_your_payroll_region');

 

if (region == 'NAM') {
g_form.addOption('u_country', '5c6f6761db55bc1085d59d67b9961930', 'India');

g_form.addOption('u_country', '206f6761db55bc1085d59d67b9961940', 'Canada');

@prudhviraj1,

Ok, that's definitely not the way to do it then. You best bet is "dependent" choices, then each translation would reside in the [sys_choice] table, 

Your code snippet shows two not good practices:

  • Hardcoded choices
  • Hardcoded sys_id's

Both of which introduce unnecessary technical debt,

 

Many thanks,
kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

Hi Alex, 

I have translated all the choices, the translations also visible when the Client Script is Inactive

 

And it is Variable, when am trying to put the dependent on parent field it was not working