Package Enhancements for Testing Flashcards
ServiceNow has over 30 places where code can be inserted to change the behavior of the platform. Some are:
- UI/Data Policies, UI Actions
- Business Rules
- Client Scripts,
and ACL Scripts, Flow scripts, Transform Maps, Script Includes, UI Macros/scripts/properties/pages
Scripting in ServiceNow is done in:
JavaScript
What is scripting in ServiceNow?
Scripting in SN or Platform Scripting is the customization of an instance and/or applications using JavaScript; and can fundamentally alter the baseline instance and user experience
Javascript may execute on the:
- Client side (web-browser)
- server side (SN database)
What is a server?
A server is the computer program running as a service; its being referred to when a client refers to an application or system
Which model uses ServiceNow?
Application Platform as a service (aPaaS)
What is the client?
The web-browser
What is a UI Policy?
A UI Policy is a rule that is applied to a form to dynamically change information or the form itself. UI Policies execute on CLIENT side.
What do yo use UI Policies for?
To set fields on a form to:
1. Mandatory or Optional
2. Hidden or Visible
3. Read-only or editable
To apply UI Policies to all views you need to:
set the Global setting to true
What can you achieve through UI Policies?
To set fields on a form to:
1. Mandatory or Optional
2. Hidden or Visible
3. Read-only or editable
Once a UI Policy is saved, UI Policy Actions determine what happens on the form:
- setting fields as mandatory - require a value in order to save record,
- setting a field as hidden - no longer displaying a field,
- setting a field as read-only - preventing users from updating its value.
Are UI Policies about security?
No, they are about user experience and data integrity
What is a Data Policy?
A Data Policy is a rule that enforces data consistency by setting fields as mandatory or read-only, and applies to all data entered into the platform.
What is a similarity and difference between UI Policies and Data Policies?
UI Policies are enforced on data ONLY entered into a form via standard browser (passing through the UI). Data Policies are applied to ALL data entered into the platform (UI, Import Sets or web services).
Where executes a Data Policy?
On the server side, but can also run as a UI Policy on the client side (if checkbox selected)
Where executes UI Policy?
On the client side
What is the purpose of Data Policies?
To standardize the same data across ServiceNow applications
What do UI Actions?
UI Actions (called click actions) add buttons, links, and context menu items on forms and lists making the UI more intuitive, customizable and specific to users.
UI Actions can execute:
Both on client and server sides depending on the “client” check bx selection.
Adding a “Create Problem” button on a form is a:
UI Action
UI Actions include:
- Form buttons
- Form context menu items
- Form links
- List buttons
- List context menu items
- List choices (at the bottom of the list)
- List links
When the UI Action Active box is checked:
the UI Action is active and can be interacted with by a user
To turn on “Save” button(/UI Action) navigate to:
All > System properties > UI Properties > select show “Save”, “Insert” and “Insert and Stay” buttons on firms
Do UI Actions require JavaScripts?
Yes
What do Client Scripts?
Client Scripts make “real-time” changes to the appearance of the user interface, especially forms.
Where to Client Scripts execute?
On the Client side, browser, but may also run a CLient Script when a database lookup is needed
Do Client Scripts require JavaScript?
Yes