- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I want to use static translations for a record producer variable which is of list collector type.
which is from sys_choice table.
It has a reference qualifier elementSTARTSWITHu_please_indicate_the_information_that_you_are_required_to_verify^ORDERBYsequence
And it contains choices with en language.
I tried to create one option for the existing choices : example for "Budgeted Hours" I created one more sys choice value "Horas presupuestadas" i did an insert and stay but just changed the label and language for es.
But the list collector shows both the values how shall I make it dynamic ?
As in based on logged in user , I need to show it
how can I do it ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
It did work fine for me when I used earlier.
please use the syntax
javascript: elementSTARTSWITHu_please_indicate_the_information_that_you_are_required_to_verify' + '^language=' + gs.getSession().getLanguage() + '^ORDERBYsequence';
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
this will work and show based on logged in user language or session language
javascript: 'elementSTARTSWITHu_please_indicate_the_information_that_you_are_required_to_verify^ORDERBYsequence' + '^language=' + gs.getSession().getLanguage();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
I tried it :
'elementSTARTSWITHu_please_indicate_the_information_that_you_are_required_to_verify^ORDERBYsequence' + '^language=' + gs.getSession().getLanguage();
But it is returning all sys choices.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
try this
'elementSTARTSWITHu_please_indicate_the_information_that_you_are_required_to_verify' + '^language=' + gs.getSession().getLanguage() + '^ORDERBYsequence';
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
It is still throwing all options