Multi Language Field Message

Community Alums
Not applicable

Hi,

I have a requirement to display error message in error box in 2 languages i.e. English/German.

There is a variable in catalog Item, which displays error message on a client script on certain condition.

I want that error message to be in English/German.

English is working fine as expected. How do I go about for Error message in German.

Thanks in advance

Regards,

Sunil

4 REPLIES 4

Chuck Tomasi
Tera Patron

Hi Sunil,



This can be done by adding the Messages field to your catalog client script (see image below) and using the getMessage() function in your client script. Be sure to place the 'key' in your Messages field so when getMessage() makes the call, it already has the translated information it needs.



That information comes from System UI> Messages. In the example below, I would have one or more records with a key my_error_message and the language and text varies from record to record.



find_real_file.png



http://wiki.servicenow.com/index.php?title=Language_Internationalization


Community Alums
Not applicable

Thanks Chuck


If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you


Yash40
Tera Contributor

Hi Chuck,

 

Can we also use getMessage() in script action(SNC User Lockout Check with Auto Unlock) ?
I want to show error message on login screen when user exceeds the attempts.

English and Japanese keys are created.