Client script for reference qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2025 10:48 PM
Hello Team, I am trying to write a code for variable in a variable set of type reference which should filter the table it is referencing and populate with two possible values using onLoad catalog client script. I tried but haven't found a solution for that can you help me to solve this thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2025 06:51 AM - edited ‎05-21-2025 06:52 AM
Why don't you just use a reference qualifier with a script include?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2025 09:59 AM
Hi @Cheikh Ahmadou , can you share any reference script include I'll try to implement for my problem thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2025 03:01 PM
Hi @charanpatnalai sorry i don't have a script include doing it currently.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2025 07:08 AM
you should only use onLoad catalog client script if you wish to auto populate 1 value
But in this case you want to restrict so you should use simple reference qualifier as this so that it always show 2 values
Something like this but please enhance for your case.
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