by jmaxwell | Jan 23, 2017 | Business Rules
I was recently working with a client who wanted to show an image whenever a specific addInfoMessage was displayed on the incident form. My first thought was that this was going to be a piece of cake since I knew that Info Messages (used in an “onDisplay”...
by jmaxwell | Dec 9, 2016 | Update Set
Typically when you see a “DELETE” in an Update Set it’s a bad thing. Either you didn’t mean to delete whatever it is deleting, or you’ve deleted a “brand new” element (something that was both created and then deleted in the new update set...
by jmaxwell | Nov 17, 2016 | Client Scripts
To attach a file to a record in ServiceNow the user needs to click the “paperclip” button on the top right corner of the screen. The icon is small and thus I usually have clients wanting to make it bigger, move it, or somehow make it more obvious. Note...
by jmaxwell | Nov 2, 2016 | Business Rules, Client Scripts, Scoped Apps, Script Include
I was recently working with one of my mentors here at Crossfuze (big shout out to Jacob Anderson for his help!) to create a new scoped app: TFS Integration application. During this process I encountered a number of limitations I had to workaround in relation to scoped...
by jmaxwell | Oct 26, 2016 | Client Scripts
Recently I was working with a friend who was trying to make attachments mandatory on a catalog item. All of the code references we could find about how to do this were Server side or client side methods that no longer worked. In this case we needed a client-side...
by jmaxwell | Oct 17, 2016 | Client Scripts, JavaScript
I was recently doing some research on g_form methods that ServiceNow provides to display messages on the form. The main two that I was familiar with were “addInfoMessage” and “addErrorMessage”; but what if there were more? I have definitely...
by jmaxwell | Oct 6, 2016 | Client Scripts, JavaScript, Jelly, jQuery
One thing that I’ve seen more than a few people struggle with is how to get data from the Server to the client when using Jelly in UI Pages and UI Macros. As such I wanted to give some examples today which would help. The “secret” is that you can use the same...
by jmaxwell | Sep 28, 2016 | Client Scripts, JavaScript
I was recently working with a colleague who mentioned that he had seen a new (un-documented) g_form method which allows you to set all catalog item Variables to Read Only. As you can probably imagine, this is great news for all ServiceNow developers who in the past...
by jmaxwell | Sep 11, 2016 | Client Scripts, JavaScript
Sometimes you may want to load a script that is functionally correct but ServiceNow has an issue with it. One example of this would be if you are trying to load a 3rd party JavaScript library but there is some code in it that ServiceNow throws an error on that you...
by jmaxwell | Aug 29, 2016 | Client Scripts, JavaScript, jQuery
As a ServiceNow Developer/Consultant one enhancement that I have received a number of times over the years (usually for the Change Management form) is the ability to “blank” the default timestamp (set to the current time) that is automatically pre-filled on all...