Update or Add javascript to system /scripts folder

phipen
Tera Expert

Hello,

Is it possible to add our own javascript to the system /scripts folders?  We are looking to add some custom javascript to the config item pop up list on the incident form.  I'm guessing we cannot but thought I would ask.  Below is a screenshot of the source from the pop up list showing the file path of the scripts folders.

find_real_file.png

2 REPLIES 2

Jon Barnes
Kilo Sage
You can’t do exactly that, but you can create a ui script and make it global which will make it available on every page ( not including service portal. You have to use js dependencies for that).

Thank you for this info, it has pointed me in the right direction.  I was able to set up a UI Script, then call it on a form by using a UI Macro and UI Formatter.  However, i cannot get the UI Script to show up on config item reference list pop up from Incident.  

I can get the UI Script to show up on Incident, CMDB_CI and CMDB_CI list view.  Is something else needed for this to work with a reference list window?