code-snippets
code-snippets copied to clipboard
ServiceNow's Code Snippets community repository, managed by the Developer Program and the sndevs community.
Location hierarchy widget displays a location data in a hierarchical way. It is meant to be used with the catalg item on the service portal. It allows end user to...
**How to make the particular variable field as "Read Only" in RITM table on type as "onLoad"** I have attached the code below, function onLoad() { // Specify the variable...
It is used to validate the length of the phone number. If it exceeds the maximum length, it displays an error message and clears the field.
This repository contains code to decrypt payload which is encrypted using AES 256 Decryption to be done using AES key stored in system property named 'decrypt_key' The file background script.js...
I created folder code-snippets -> client scripts -> Conditional Form Section based on Role OnLoad client script to conditionally display the section based on the logged in user role. For...
I created a folder code-snippets -> Client Script -> Display Section on State Section will be displayed based on the state. Created README.md Created script.js
Normally, creating a new table means going through multiple steps in ServiceNow's interface. With this script, you can automate the process to quickly set up a new table with the...
The script identifies tasks that haven’t been updated for a set period, sends reminder notifications to assigned users, and, if still inactive after additional time, automatically closes them. This helps...
Dear ServiceNow Community, The GlideEncrypter API uses 3DES encryption standard with NIST 800-131 A Rev2 has recommended against using to encrypt data after 2023. ServiceNow offers alternative cryptographic solutions to...
Generally when you want to encrypt or decrypt any Non-password fields earlier we have Glide Encrypter API methods for encryption and decryption. The GlideEncrypter API uses 3DES encryption standard with...