how to show options in a catalog item dropdown based on data from table and filled
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 12:25 AM
Hi
can anyone help me with scenario for :
i have a dropdown field in a catalog item with name as ' scope of request ' and it has options as NDL,MNL,SYD and others which is coming from another table.(branch mappings table)
we have a field in branch mappings table for windows, Linux, network, printers and is a reference to group table , now what ever the options filled (groups) and if user is part of those groups i want to show those options in the catalog item in the drop down with the field name in Type of asset:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2025 12:31 AM
which user -> logged in user?
if yes then use onLoad catalog client script with GlideAjax and then 1st remove all the options and then use addOption() based on what script include returns
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
02-20-2025 12:51 AM
hi
yes logged in user, could you please help me with the script?