Client scripts

/Tag: Client scripts

CI UI Macro Actions for the Affected CIs List

By | 2018-07-09T14:59:55-06:00 January 18th, 2012|Categories: CMDB, UI actions|Tags: , , , , |

The ability to associate Affected Configuration Items against a task is one of the most basic pieces of the various task forms in ServiceNow. ServiceNow gives you the ‘Configuration Item’ field to associate a single CI and the ‘Affected CIs’ related list in the event that your task needs to be associated to multiple CIs. I’ve [...]

Change Form Header Background Color

By | 2018-07-09T14:59:55-06:00 January 11th, 2012|Categories: Client scripts|Tags: |

Just a quick scripting tip today based on a solution that I helped someone with on the ServiceNow community site. The request I received was to be able to change the form header background color based on changes to values in a record. You’re probably aware that ServiceNow provides a global CSS property to set the [...]

Customizing the dirty form alert popup

By | 2018-07-09T14:59:55-06:00 December 14th, 2011|Categories: Client scripts, System UI|Tags: , , |

I had a colleague come to me recently for help on a client issue. The customer wanted two things; the first was to set up the capability to warn users when they were navigating away from a modified form without saving it, but to do this only on selected forms rather than globally. The second was [...]

Attach an event listener to a related list button

By | 2018-07-09T14:59:55-06:00 December 1st, 2011|Categories: Client scripts|Tags: , , |

Recently a colleague asked me for assistance with a customer request. The requirement was to pop up an information or alert message when a user clicked the ‘Edit’ button on the ‘Affected CIs’ related list. The alert message would give them some information or a warning, allow the user to confirm, and then continue on to [...]