Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to translate confirm message from client script?

antony4007
Tera Expert

Hi Experts,

We have a requirement to translate a confirm message from client script.

confirm("You confirm that all information being submitted is accurate. If you are unsure select Cancel to return to editing, otherwise select OK.")

I tried below way and its not working

getMessage(("update personal information message", function(msg){
confirm(msg);}

Any one come across this translation? Please suggest.

 

Thanks,

Antony

1 ACCEPTED SOLUTION

Below setup for example, results correctly in Dutch in "Hallo", instead of English "Hello".

find_real_file.png

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

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

---

LinkedIn
Community article 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

11 REPLIES 11

Below setup for example, results correctly in Dutch in "Hallo", instead of English "Hello".

find_real_file.png

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

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

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

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

LinkedIn

Shivani Singh1
Tera Guru

Hi Antony,

Just add <Your message> in "Message" field in client script also, then it will work fine with 

confirm(getMessage("<Your message>"));

Please mark helpful if it solves the purpose