The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Static Translations

Ashutosh4
Tera Contributor

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 ?

 

1 ACCEPTED SOLUTION

@Ashutosh4 

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.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

10 REPLIES 10

Ajay_Chavan
Kilo Sage
Update Reference Qualifier (Recommended)

Modify your reference qualifier to include language filtering:

javascript

elementSTARTSWITHu_please_indicate_the_information_that_you_are_required_to_verify^language=${gs.getSession().getLanguage()}^ORDERBYsequence
Glad I could help! If this solved your issue, please mark it as ✅ Helpful and ✅ Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****