Advanced Reference Qualifier on Catalog Item Variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2020 08:26 AM
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.
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!
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2025 11:10 AM
Hi Jlaue,
Did you find a solution to this, I'm having the same issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2020 09:06 PM
Thanks for correcting
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 02:49 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 02:54 AM
could you post a new question and tag me there as this is an old thread?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2023 02:55 AM
Right, by the way the ":" was meant to be ":"