How to use reference qualifier in Select Box?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2022 04:44 AM
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.
How can I achieve that? My variable page does not have the reference qualifier option. How to filter choices based on language?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2022 04:58 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2022 04:59 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2022 06:11 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2022 09:20 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader