how to show options in a catalog item dropdown based on data from table and filled

raj765_32
Tera Contributor

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:

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@raj765_32 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

hi

yes logged in user, could you please help me with the script?