About this exam
A ServiceNow certification for people who design and develop scoped applications on the ServiceNow AI Platform (formerly the Now Platform). It covers application design and scope, tables and user interfaces, client and server scripting, security and access control, automation, and publishing and managing applications.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
On a form in a scoped application, when the user changes the Assigned to field, you want to immediately show a field message with the number of open tasks that person already has. The count must be calculated from a server-side table, and the form must not reload. What is the most appropriate implementation?
- ACreate a client-callable Script Include and call it with GlideAjax from an onChange client script
- BPut the count in g_scratchpad with a display business rule and show it in an onLoad client script
- CCreate a UI policy conditioned on Assigned to not being empty that shows a count field
- DInstantiate the Script Include class directly with new inside the onChange client script
Show answer and explanation
Answer:A When the client needs server data after the form has loaded, call a client-callable Script Include with GlideAjax.
Why it is correct
An onChange client script runs when the field changes, and GlideAjax is how it calls server-side logic asynchronously. In a scoped application, a Script Include that extends global.AbstractAjaxProcessor and has Glide AJAX enabled (Client callable) selected can count the records and return the result, which is displayed without reloading the form. It recalculates for the current assignee on every change, which matches the requirement.
The other options
- ✗ B A display business rule runs only once when the form loads, so changing the assignee afterwards does not update the count. Use it to pass server values that are known at load time.
- ✗ C The UI policy action in option C only reveals a field when the condition is met; it does not retrieve or calculate the count from server-side data. Use UI policies to toggle a field's visibility, mandatory or read-only state based on conditions.
- ✗ D A Script Include runs on the server, so a client script running in the browser cannot instantiate it directly. Reuse it from server-side scripts such as business rules or other Script Includes.
Key takeaway
How the client gets server data: only at form load → display business rule + g_scratchpad. In response to actions after load → GlideAjax + client-callable Script Include. Just changing the form's appearance → UI policy.
Try 20 questions like this for free
itmoshi is an unofficial study service and is not affiliated with ServiceNow or any exam provider.