CSA practice question 8 of 35

Which type of scripts run in the browser?

Full set: 500 questions
Answer options
A: Policies and Client Scripts Correct answer
B: Access Contral Scripts
C: script Include Scripts
D: Business Rule Scripts
Correct Answer:
A. Policies and Client Scripts
Explanation

In ServiceNow, scripts are categorized as either client-side or server-side. Client-side scripts execute within the user's web browser and are primarily used to manage the user interface and user experience. Both UI Policies and Client Scripts are client-side mechanisms. UI Policies dynamically change form information or field attributes, while Client Scripts execute on user actions like form loading, changes, or submissions. Both operate directly within the browser to provide a responsive user experience without needing to communicate with the server for every change.

Why Incorrect

B. Access Control Scripts: These are server-side scripts that run to enforce security and determine a user's permissions to access data before it is sent to the browser.
C. Script Include Scripts: These are reusable libraries of code that execute on the server. They can be called by other server-side scripts or by client-side scripts via GlideAjax, but the execution happens on the server.
D. Business Rule Scripts: These are server-side scripts that execute when records are queried, inserted, updated, or deleted on the server's database.

References

1. ServiceNow Product Documentation: Client-side scripting. This document explicitly lists UI Policies and Client Scripts as the primary types of scripts that run on the client (browser). It states, "Client-side scripts run on the web browser. You can use client-side scripts to manage the user interface (UI) and user experience (UX)."

2. ServiceNow Product Documentation: Server-side scripts. This document contrasts with client-side scripting and lists Business Rules, Access Controls (ACLs), and Script Includes as scripts that "run on the ServiceNow server or database."

3. ServiceNow Developer Site: ServiceNow Fundamentals Learning Path, Client-Side Scripting Module. This training module details how Client Scripts and UI Policies are used to create the user experience in the browser. It specifies their execution context as the client.

4. ServiceNow Developer Site: ServiceNow Fundamentals Learning Path, Server-Side Scripting Module. This module explains that Business Rules, Script Includes, and Access Controls execute on the server to interact with the database and enforce logic before data is returned to the user's browser.

Scroll to Top