Java Script is a scripting language that can be used to create customised applications and modules. It enables users to modify UI, process flow and business rules without needing to compile them.
ServiceNow Java Script policies allow you to control the behavior of form information. For example, you can make a field mandatory or read-only based on some condition or load.
A UI policy can be view-specific, which means that it only applies to one form view. You can set the option for this in the UI policy settings.
You can also create global UI policies, which apply to all form views. This can help you avoid the need to write client-side scripts for each form view.
These scripts help make a form more interactive, customised, and specific to user activities. They allow users to configure forms and lists with informational messages, add custom button configurations, and customize CRUD operations.
UI Actions are one of the most commonly used features by ServiceNow Admins and Consultants. They can be configured to do things like validate input and check for mandatory fields, as well as set field attributes such as the impact or priority values.
Client-side scripting runs in the user’s web browser, rather than on the server (on the ServiceNow application server or database). This saves time by reducing round trips.
Typically, client-side scripts are used for immediate form changes, form validation or limited database lookups. They can also be used to provide more user-friendly forms, including popup alerts and dropdown lists.
The ServiceNow Java Script client-side API provides classes and methods that you can use in your scripts. However, understand the limitations of your environment and use these APIs wisely.
Server-side scripting uses a computer program to execute code on the server that delivers a customized response to each client request. It is a popular choice for web development.
Business rules are a type of server-side script that runs when a record is displayed, inserted, updated, deleted, or when a table is queried. These scripts can be configured to perform various tasks, such as amending field values, or updating parent and child records.