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...
by jmaxwell | Aug 19, 2016 | Client Scripts, JavaScript, jQuery
Recently I was doing some troubleshooting for an onChange script and trying to figure out why it (or rather it’s event) wasn’t firing. In my digging I came across the code that is responsible for registering events and then kicks off the corresponding...