Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Advanced Reference Qualifier on Catalog Item Variable

jlaue
Mega Sage

Hello - 

I have 2 fields on a catalog item that both reference the same table (sys_user_group).  The first field is a List Collector where they can select multiple groups.  The second field is where I want them to select a default/home group, and is referencing the same sys_user_group table.  However, I only want this second field to show the values that they selected from the first field within the List Collector.  

find_real_file.png

I have added this advanced reference qualifier on the second field, however I get no results found even though I have multiple values selected in the first field:  

javascript:'name='+current.variables.group_s_to_be_added.name; 

group_s_to_be_added is the name of the variable on the first field with the list collector.

I have added the variable attribute:  ref_qual_elements=name

I have done this successfully in the past, but not when both of the fields are referencing the same table, so I am not sure what I am doing wrong here.

 

Thanks!

 

 

9 REPLIES 9

MarjanA
Tera Contributor

Hi Jlaue,

 

Did you find a solution to this, I'm having the same issue

Thanks for correcting

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

Hi @Ankur Bawiskar! Could you please help me understand why mine would not work?
I literally have a copy paste of the same reference qualifier but mine doesn't want to show anything...

javascript:'u_site=' + current.variables.site;

and

ref_qual_elements=site

But this just doesn't do anything!

Intriguingly enough, it does work when I give it an arbitrary sysid.. So I know for a fact that it is something related to how I wrote it... but then I don't know how...

 

What I am trying to achieve is to make the user chose a site, so that a list would update based on this site.. 

the site field is a lookup select box, and the one for the reference qualifier is a List collector.

 

Any thoughts?

Kind regards,

Darius

@Dariussiriuse 

could you post a new question and tag me there as this is an old thread?

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

Right, by the way the ":" was meant to be ":"