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

Mark Roethof
Tera Patron
Tera Patron

Hi there,

Have you added the messages to the Message field in the Catalog Client Script?

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

Hi @Mark Rodgers ,

No, I did not add there,

do I need to add all addOption text  with comma separation in English Language?

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

Also see:
- 2019-11-19 Catalog Client Script Messages (Internationalization/Multi-Language)

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