How to use reference qualifier in Select Box?

RFJ1
Tera Contributor

I have a variable that displays time zone for the user to select but I want only the choices whose language is English (en) to be displayed. 

find_real_file.png

How can I achieve that?  My variable page does not have the reference qualifier option. How to filter choices based on language?

find_real_file.png

6 REPLIES 6

Saurav11
Kilo Patron
Kilo Patron

Hello,

I would suggest you to change it the variable to lookup select box then you will be able to apply reference qualifier.

Please mark answer correct/helpful based on Impact.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you cannot add ref qualifier to drop down variable

Make it lookup select box which refers to that table

OR

discuss with your customer on the requirement

Regards
Ankur

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

Thank you replying!

I know we can use gs.getUser().getLanguage(); to get the logged in users lang. But this fetches the language from the user preferrence table not the user table. How can I get the value of the Language field from the sys_user table using this (gs) object?

@RFJ 

but when logged in user visits any page system takes that language which is at the profile

in client script you can try to use this to get it

alert(g_lang);

Regards
Ankur

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