Multi Language Field Message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 10:37 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2017 12:26 PM
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.
http://wiki.servicenow.com/index.php?title=Language_Internationalization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2017 08:29 AM
Thanks Chuck

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2017 07:42 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2023 10:10 PM
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.