How to set variable value as a reference qualifier in lookup select box variable on catalog item

AmeyK7044264560
Tera Contributor

Hi Everyone,

I’m trying to set a reference qualifier dynamically on a Lookup Select Box variable in a catalog item by using another variable’s value.

Right now, I’m using the following script as the reference qualifier:


javascript: "" + current.variables.topic_path_filter;

This works perfectly when the catalog item is opened through Employee Center, but the same setup does not work in the Native UI.

I’m looking for a solution that will work consistently in both Employee Center and Native UI.

Has anyone faced this issue or found a workaround? Any help would be appreciated!

Thanks in advance!

2 ACCEPTED SOLUTIONS

Tanushree Maiti
Tera Sage

Hi @AmeyK7044264560 

 

Resolution

Add the following variable attribute to the dependent Lookup Select Box variable:
ref_qual_elements=<dependent_variable>

If multiple variables are referenced in the qualifier, include them as a comma-separated list:
ref_qual_elements=variable1,variable2

 

Refer: KB2804215 :Advanced Reference Qualifier Not Functioning as Expected for "Lookup Select Box Variables... 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

View solution in original post

yashkamde
Mega Sage

Hello @AmeyK7044264560 ,

 

I had done the similar use case and it's working fine in both portal and Native UI.

Plz have a look on variable configuration :

Screenshot 2026-03-23 115344.png

 

Make sure you had done every required configuration..
If still gets issues plz send the screenshots of the issue..

If my response helped mark as helpful and accept the solution.

View solution in original post

3 REPLIES 3

Tanushree Maiti
Tera Sage

Hi @AmeyK7044264560 

 

Resolution

Add the following variable attribute to the dependent Lookup Select Box variable:
ref_qual_elements=<dependent_variable>

If multiple variables are referenced in the qualifier, include them as a comma-separated list:
ref_qual_elements=variable1,variable2

 

Refer: KB2804215 :Advanced Reference Qualifier Not Functioning as Expected for "Lookup Select Box Variables... 

 

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin:

Ankur Bawiskar
Tera Patron

@Tanushree Maiti 

what's the variable type for "topic_path_filter"?

share some config screenshots of that variable

Share screenshots how it behaves on portal vs native

was his working fine earlier?

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

yashkamde
Mega Sage

Hello @AmeyK7044264560 ,

 

I had done the similar use case and it's working fine in both portal and Native UI.

Plz have a look on variable configuration :

Screenshot 2026-03-23 115344.png

 

Make sure you had done every required configuration..
If still gets issues plz send the screenshots of the issue..

If my response helped mark as helpful and accept the solution.