Catalog Builder - Reference qualifier

StefanSrba
Tera Contributor

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?

StefanSrba_1-1751008921983.pngStefanSrba_0-1751008900714.png

 

StefanSrba_2-1751008936766.pngStefanSrba_3-1751008986482.png

StefanSrba_5-1751009053033.pngStefanSrba_6-1751009070461.png

 

StefanSrba_7-1751009119595.pngStefanSrba_8-1751009157574.png

1 ACCEPTED SOLUTION

Nishant8
Giga Sage

Hello @StefanSrba, can you please do as following:

- replace reference qualifier as: 

adding screenshot so that you use right javascript

Nishant8_0-1751013849456.png

javascript: 'u_operating_system='+current.variables.u_operating_system;

- use Variable Attribute as: 

ref_qual_elements=u_operating_system

 

Regards,

Nishant

 

View solution in original post

7 REPLIES 7

Shruti
Mega Sage
Mega Sage

Add Variable attributes ref_qual_elements=u_operating_system

 

StefanSrba_1-1751013064282.pngStefanSrba_2-1751013082975.png

Still getting an No matches found when I should have exactly 3.

Nishant8
Giga Sage

Hello @StefanSrba, can you please do as following:

- replace reference qualifier as: 

adding screenshot so that you use right javascript

Nishant8_0-1751013849456.png

javascript: 'u_operating_system='+current.variables.u_operating_system;

- use Variable Attribute as: 

ref_qual_elements=u_operating_system

 

Regards,

Nishant

 

Can you help me understand how to use Reference qualifier and Variable attributes?

The current version that link OS with Category (your answer that helped me)

StefanSrba_2-1751014497207.png

 

But when I tried to do the same while linking Category and Subcategory i just get 

StefanSrba_4-1751014629020.png

Subcategory is empty even thou when I filter the table it has data.

StefanSrba_3-1751014594463.png

 

StefanSrba_6-1751014759240.png

 

What am I missing?