- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2022 10:59 PM
Hi All ,
I had created variable type "URL" and Included URL in default , this is working fine for English language.
when we switch to Another language Question label is getting translated but URL is not getting translated
NOTE : we have two different URL's for English and French
I had changed label of French by switching to French language in portal and pasted the Translated French label in the variable
can anyone help with Inputs here.
Regards,
Shyamkumar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 01:09 AM
Hi,
don't use gs.getMessage() if you have not created any record in messages table
use this as default value
javascript: gs.getUser().getLanguage() == 'en' ? 'https://www.google.com' : 'url in spanish'
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 12:12 AM
default value script is already shared above
what did you try and what is not working?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 12:51 AM
Hi Ankur,
how to call different URL in reference qualifier for message we have gs.getmessage , how can we do for URL
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 12:57 AM
Hi,
are you storing URL in messages table for each language?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 01:07 AM
no I did not store Ankur , I have question what is key in the Message what should I pass in the key , actually I'm new to translation hope you understand
Regards,
Shyamkumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2022 01:09 AM
Hi,
don't use gs.getMessage() if you have not created any record in messages table
use this as default value
javascript: gs.getUser().getLanguage() == 'en' ? 'https://www.google.com' : 'url in spanish'
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader