- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2023 05:44 PM
I have two identical buttons, one in English and one in Japanese. I want these buttons to change based on the language setting in ServiceNow. For example, if the language is set to English, I want to display the English version of the button, and if the language is set to Japanese, I want to display the Japanese version. How can I achieve this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2023 06:16 PM
Hi @CAO ,
Could you try below line in condition of UI action ?
For English
gs.getSession().getLanguage() == "en"
For Japanese
gs.getSession().getLanguage() == "ja"
Please mark this response as correct or helpful if it assisted you with your question.
Regards,
Harshal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2023 06:16 PM
Hi @CAO ,
Could you try below line in condition of UI action ?
For English
gs.getSession().getLanguage() == "en"
For Japanese
gs.getSession().getLanguage() == "ja"
Please mark this response as correct or helpful if it assisted you with your question.
Regards,
Harshal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2023 06:19 PM
Thank you very much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-03-2023 08:24 PM
Hello @CAO
If you are in scoped application, use Harshal's script in script include in Global.
Help others to find a correct solution by marking the appropriate response as correct answer and helpful!!
Kind Regards,
Ravi Chandra.