Correct Answer: A
Scripts that run in the browser (client-side) help control UI behavior, form validation, and field interactions in real-time without needing a server request.
Types of Client-Side Scripts in ServiceNow:
✅ Client Scripts
Run directly in the user's browser.
Used for form validation, auto-populating fields, or UI interactions.
Example:
javascript
CopyEdit
function onLoad() {
g_form.setValue('priority', '2');
}
✅ UI Policies
Control field visibility, mandatory status, and read-only state dynamically.
Example: If category = Hardware, make Serial Number field mandatory.
Why Other Options Are Incorrect?
B . Access Control Scripts → ❌ Incorrect
Access Control Lists (ACLs) run server-side, not in the browser.
C . Script Includes → ❌ Incorrect
Script Includes run server-side and are used for reusable functions and API logic.
D . Business Rules → ❌ Incorrect
Business Rules also run on the server, not in the browser.
Official ServiceNow Documentation Reference:
Client Scripts Overview
UI Policies in ServiceNow