We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Translations are not reflecting on my drop down values when I use addOption functionality.

Sai_Dilip
Tera Contributor

I have a record producer and I have created translation records on "sys_translated" table for questions and question choices.

 

Based on some conditions I am adding and removing options using an Onchange client script, for the added Options through the client script translation is not reflecting.

 

I believe the issue here is because the addOption functionality happens on client-side and that might be the reason for not picking up the translations.

 

Any workaround to tackle this?

2 ACCEPTED SOLUTIONS

1__AnithaHV
Kilo Sage

Hi @Sai_Dilip ,

 

Please go through the below email thread it might be useful to fix your issue.

Translation using getMessage for addOption choices... - ServiceNow Community

 

Thanks & Regards,

Anitha H V

View solution in original post

3 REPLIES 3

1__AnithaHV
Kilo Sage

Hi @Sai_Dilip ,

 

Please go through the below email thread it might be useful to fix your issue.

Translation using getMessage for addOption choices... - ServiceNow Community

 

Thanks & Regards,

Anitha H V

Sai_Dilip
Tera Contributor

Thanks @1__AnithaHV  & @Community Alums , I have used getMessage only for the label value replacement, now I am using for both the parameters in the addOption('label_value & backend_value'). It worked.