Translations , need to add German Language also in the below On Change script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2023 05:04 AM
When selecting German Language also it was showing English Choices only, so need to include German choices in the script, kindly help me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2023 10:04 AM
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');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2023 10:08 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2023 11:42 AM
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