- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 07:32 AM
Hi,
I have 2 fields "Request" and "Label". "Request" is a dropdown field with 5 options and "Label" is a list collector field with 23 options. Based on the options I'm selecting from the Request field, I want to show the choices in the list collector field.
Can you please help?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 08:43 AM
you can use this advanced ref qualifier on list collector
Ensure you give correct choice value to compare and correct sysIds of question_choice records
javascript: var query; var choice = current.variables.firstVariable; if(choice == 'choice1') query = 'sys_idINsysId1,sysId2'; else if(choice == 'choice2') query = 'sys_idINsysId3,sysId4'; query;
Ensure you add this variable attributes
ref_qual_elements=firstVariableName
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
07-10-2025 10:02 AM - edited 07-10-2025 10:08 AM
Hello @Narmadha PR
Taken reference from: https://www.servicenow.com/community/developer-forum/need-a-simple-onchange-client-script-to-force-l...
here is what you need to perform to achieve something like below:
Service portal screenshots:
Here are the variables:
Here is your List collector variable:
Reference qualifier:
javascript:
var listCollectorFilter = {
'choice1': 'sys_idIN5e7101b697968d1021983d1e6253af4e,1f8101b697968d1021983d1e6253af4f',
'choice2': 'sys_idINe59101b697968d1021983d1e6253af52,1ab7eafa9712cd1021983d1e6253af52',
'choice3': 'sys_idINeda62e7a9712cd1021983d1e6253af19,09a7aafa9712cd1021983d1e6253aff6'
};
listCollectorFilter[current.variables.request] || '';
Variable Attributes: ref_qual_elements=request
Hope that helps!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 07:38 AM
This ServiceNow Guru post has the answer. I have been using this since the Calgary release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 07:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2025 07:39 AM
list collector is bringing choices from which table?
share screenshots of variable configuration for both
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
07-10-2025 07:59 AM