- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 12:32 AM
Hi all,
I’m new to ServiceNow and am trying to figure out how to set up the Service Catalog.
I need to implement a Lookup Select Box question that filters its options based on another field.
The only way I’ve managed to get filtering to work is by switching the field type to Reference and using a Simple reference qualifier. However, when I use Lookup Select Box with a fixed reference qualifier (as shown in the screenshot), it doesn’t behave the same.
I have another field that has this kind of dependency working correctly, but I haven’t been able to replicate it.
What am I missing? What is correct way to format reference qualifier?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 01:40 AM - edited 06-27-2025 01:44 AM
Hello @StefanSrba, can you please do as following:
- replace reference qualifier as:
adding screenshot so that you use right javascript
javascript: 'u_operating_system='+current.variables.u_operating_system;
- use Variable Attribute as:
ref_qual_elements=u_operating_system
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 03:38 AM
Hello @StefanSrba, Could you please use following as Reference qualifier of subcategory:
javascript: 'u_operating_system='+current.variables.u_operating_system+'^u_category='+current.variables.u_category;
adjust the field name accordingly if any typo in my script.
Regards,
Nishant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 05:18 AM
Thank you so so so much!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2025 02:07 AM
Hi Stefan,
When there's a dependency on another variable, you need to use the following format in the reference qualifier:
javascript:'u_operating_system=' + current.variables.u_operating_system
This ensures that the dependent variable filters its options based on the selected value of u_operating_system.
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P