logo

NJP

JavaScript Executor - Did You Know

Import · Oct 16, 2023 · video

[Music] Chuck here with another quick service now developer tip now sometimes debugging client scripts can be tricky did you know there's a way to test and run code from within service now on any browser it's called the JavaScript executor let me show you from any platform list or form like this we'll type control shift J on a Mac and windows and you get this pop up from here we can type client side code and click run my code when this Choice over here is set to execute code when we flip it to browse vars we have a quick reference to the data available to us in our client side script like this one base URI we can copy from here go back to execute code and paste it in the alert statement and run it we even have access to the g-form class so we can test things like g.s set value here just remember everything is temporary it's all CDE side until you save update or call something like G form. saave so the next time you need quick access to debug or test some client side code try the JavaScript executor that's all for this time and don't forget if you've got a tip about the platform an app or capability share it with the world and use the hash service now Dyk to be part of the community I'll be back soon with another service now Dyk thanks for [Music] watching

View original source

https://www.youtube.com/watch?v=JNsorN1PFT8