Topic: Client-side Scripting - ANSWER GlideUser (g-user)
GlideForm (g_form)
When do onSubmit Client Scripts execute their script logic? Three answers.
Topic: Client-side Scripting - ANSWER When a user clicks the Submit button
When a user clicks the Update button
When a user clicks the Save menu item in the Additional Actions menu
True or False: A single Client Script can execute its script logic when a user loads a record
into a form AND when a user saves/submits/updates a form.
Topic: Client-side Scripting - ANSWER False
True or 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.
Topic: Client-side Scripting - ANSWER True
Examine the onChange Client Script for the Urgency field:
If a user changes the value in the Urgency field to 1 - High, what text will appear in the alert?
1
,See Figure 1
Topic: Client-side Scripting - ANSWER The urgency for this Incident record changed to: 1
True or False: UI Policies require scripting to make form fields Mandatory, Visible or Read
only.
Topic: Client-side Scripting - ANSWER False
When can UI Policies execute their logic? Two answers.
Topic: Client-side Scripting - ANSWER When a record is loaded into a form
When field values change on a form
Which of the following is a strategy for debugging Client Scripts or UI Policies? Five answers.
Topic: Client-side Scripting - ANSWER Browser's Developer Console
Debug UI Policies module
JavaScript try/catch
JavaScript Log and jslog()
Field Watcher
Do UI Policies execute UI Policy scripts only when the Condition field evaluates to true?
Topic: Client-side Scripting - ANSWER No. If the Reverse if false option is selected, UI
Policies execute the Execute if false script when the Condition field evaluates to false.
2
,Which classes are part of the ServiceNow server-side API? Three answers.
Topic: Server-side Scripting - ANSWER GlideSystem (gs)
GlideDateTime
GlideDate
What describes when before Business Rules execute their script logic.
Topic: Server-side Scripting - ANSWER Before records are written to the database
What is the difference between an after Business Rule and an async Business Rule?
Topic: Server-side Scripting - ANSWER Both after and async execute their script logic after
records are written to the database. after Business Rules execute their logic immediately
after a record is written to the database. async Business Rules create schedules jobs that run
soon after a record is written to the database.
What are NOT methods from the GlideRecord API? Two answers.
Topic: Server-side Scripting - ANSWER addOrQuery()
addAndQuery()
What is NOT true about the current object? Three answers.
Topic: Server-side Scripting - ANSWER The current object property values never change
after a record is loaded from the database
The current and previous objects are always identical
The properties of the current object are the same for all Business Rules
3
, What value does a Business Rule Condition field return if the field is empty?
Topic: Server-side Scripting - ANSWER True
Examine the database tables and fields:
Based on the database, what is valid dot-walking syntax
See Figure 2
Topic: Server-side Scripting - ANSWER current.u_requested_for.userID
What is true about Script Includes? Five answers.
Topic: Server-side Scripting - ANSWER Script Includes are reusable server-side script logic
Script Includes can extend an existing class
Script Includes can define a new class or function
Script Includes can be client callable
Script Includes execute their script logic only when explicitly called
What is used to control access to features and capabilities in applications and modules?
Topic: Securing Applications Against Unauthorized Users - ANSWER Role
What can be configured with multiple roles to grant access? Two answers.
Topic: Securing Applications Against Unauthorized Users - ANSWER Application Menu
4