addOption choice is not translating on Portal

Rekha Tiwari
Kilo Guru

Hi All,

I am adding option in one of the variable based on the logged in user country using addOption in Catalog client script:

Script is like:

if ((answer == 'JP') && (concent == 'I Consent')) {
//alert('4');
g_form.addOption("please_select_from_the_following", getMessage("Mental Disability"), getMessage("Mental Disability"));
g_form.addOption("please_select_from_the_following", getMessage("Non-Severe Intellectual Disability"), getMessage("Non-Severe Intellectual Disability"));
g_form.addOption("please_select_from_the_following", getMessage("Non-Severe Physical Disability"), getMessage("Non-Severe Physical Disability"));
g_form.addOption("please_select_from_the_following", getMessage("Severe Intellectual Disability"), getMessage("Severe Intellectual Disability"));
g_form.addOption("please_select_from_the_following", getMessage("Severe Physical Disability"), getMessage("Severe Physical Disability"));
}

 

and Translating these choices in sys_ui_message table:

find_real_file.png

But the changes are not reflecting on Portal while working fine on backend. Any suggestions please?

1 ACCEPTED SOLUTION

Yes indeed you need to add all of them to the Message field, comma seperated.

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020-2022 ServiceNow Community MVP
2020-2022 ServiceNow Developer MVP

---

LinkedIn
Community article, blog, video list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

5 REPLIES 5

Hi @Mark Roethof 

 

Thanks for response, I added Texts in Message field but one of the choice still did not translated:

While I have translated in messages table also:

Also stores in Catalog Client Script's Message field:

What went wrong now. Any suggestions please?