Client-Side Scripting || 100% Correct Solutions., Exams of Computer Security

Client-Side Scripting || 100% Correct Solutions.

Typology: Exams

2025/2026

Available from 06/23/2026

Sirvnton
Sirvnton 🇺🇸

2.7K documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Client-Side Scripting || 100% Correct Solutions.
What classes are part of the ServiceNow Client-side API? correct answers 1) GlideUser (g_user)
2) GlideForm (g_form)
When do onSubmit Client Scripts execute their script logic? correct answers 1) When a user
clicks Submit
2) When a user clicks Update
3) When a user clicks Save
A single Client Script can execute its script logic when a user loads a record AND when a user
saves, submits, or updates a form. correct answers False
A single Client Script can execute its script logic when a user loads a record into a form AND
when a user changes a value in a field. correct answers True
UI Policies require scripting to make form fields Mandatory, Visible, or Read-Only. correct
answers False
When can UI Policies execute their logic? correct answers 1) When a record is loaded into a
form
2) When field values change on a form
What are the strategies for debugging Client Scripts or UI Policies? correct answers 1) Browser's
developer console
2) Debug UI Policies module
3) JavaScript try / catch
4) JavaScript log and jslog()
5) Field Watcher
Do UI Policies execute UI Policy scripts only when the condition field evaluates to true? correct
answers No. If the "Reverse if False" option is checked, UI Policies execute that when the
condition field evaluates to false.
What is a strategy for debugging client-side scripts? correct answers 1) g_form.AddInfoMessage
2) jslog()
3) Field Watcher
Client Side Scripts correct answers 1) UI Policies
2) Client Scripts
What is NOT a debugging strategy for for client-side scripts? correct answers gs.log()
before correct answers A UI Policy's actions execute _____ the UI Policy's scripts.
pf2

Partial preview of the text

Download Client-Side Scripting || 100% Correct Solutions. and more Exams Computer Security in PDF only on Docsity!

Client-Side Scripting || 100% Correct Solutions.

What classes are part of the ServiceNow Client-side API? correct answers 1) GlideUser (g_user)

  1. GlideForm (g_form) When do onSubmit Client Scripts execute their script logic? correct answers 1) When a user clicks Submit
  2. When a user clicks Update
  3. When a user clicks Save A single Client Script can execute its script logic when a user loads a record AND when a user saves, submits, or updates a form. correct answers False A single Client Script can execute its script logic when a user loads a record into a form AND when a user changes a value in a field. correct answers True UI Policies require scripting to make form fields Mandatory, Visible, or Read-Only. correct answers False When can UI Policies execute their logic? correct answers 1) When a record is loaded into a form
  4. When field values change on a form What are the strategies for debugging Client Scripts or UI Policies? correct answers 1) Browser's developer console
  5. Debug UI Policies module
  6. JavaScript try / catch
  7. JavaScript log and jslog()
  8. Field Watcher Do UI Policies execute UI Policy scripts only when the condition field evaluates to true? correct answers No. If the "Reverse if False" option is checked, UI Policies execute that when the condition field evaluates to false. What is a strategy for debugging client-side scripts? correct answers 1) g_form.AddInfoMessage
  9. jslog()
  10. Field Watcher Client Side Scripts correct answers 1) UI Policies
  11. Client Scripts What is NOT a debugging strategy for for client-side scripts? correct answers gs.log() before correct answers A UI Policy's actions execute _____ the UI Policy's scripts.

What is true for GlideUser (g_user) methods? correct answers It can be used in Client Scripts, UI Policies, and UI Actions Client Scripts and UI Policy Scripts can execute selectively based on views. correct answers True Protection Policies can be applied to UI Policy and Client Script. correct answers False GlideUser object (g_user) correct answers What is part of the client-side scripting API? What client-side scripts apply to Record Producers? correct answers 1) Catalog Client Scripts

  1. Catalog UI Policies What method prints a message on a blue background to the top of the current form by default? correct answers g_form.addInfoMessage Form Choice correct answers What is NOT a UI Action type? g_user.hasRoleExactly(catalog_admin) correct answers Which method call returns true only if the currently logged in user has the catalog_admin role and in no other case?