- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 05:25 PM - edited 01-09-2025 06:42 PM
We are currently creating two variables (List Collector① and List Collector②) with catalog items.
As an example, I would like to achieve the following by setting the same A, B, C, D, and E options for list collectors① and ②.
Does anyone know of a solution?
[Set values for list collectors① and ②]
List table: Question Choice[question_choice].
Reference qualifier: unset
【Question】
Referring to the image, please tell me how to make sure that what is selected in the list collector① cannot be selected in list collector②.
Do I need to edit the current Reference qualifier? Or do I need to create a new catalog client script?
Can anyone assist me on how to implement the above?
Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 09:20 PM
try this
javascript: 'sys_idNOT IN' + current.variables.1stVariableName;
also add variable attributes
ref_qual_elements=1stVariableName
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 07:52 PM
you already raised a question for something similar yesterday
Any reason to raise a duplicate question? I already provided solution there
How to show/hide choices for list collector variables
you can handle it in existing ref qualifier
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 08:45 PM
Thank you for your answer.
Can you solve the problem with what you answered yesterday as shown in the image below?
How to show/hide choices for list collector variables
I tried with PDI and could not do it.
I apologize if my knowledge is insufficient.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2025 09:20 PM
try this
javascript: 'sys_idNOT IN' + current.variables.1stVariableName;
also add variable attributes
ref_qual_elements=1stVariableName
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2025 05:02 PM
Thank you very much.
I was able to try and implement this.
I have approved this as a solution.