ユーザーがインシデント フォームを使用していて、[優先度] フィールドの値を変更するとアラートが表示される場合、プラットフォームではどのタイプのスクリプトが実行されますか?
正解:B
Client Scripts in ServiceNow are scripts that run on the client-side (browser) and execute in real-time based on user interactions with a form.
Correct Answer
B . A client script ✅
Runs in the user's browser when they interact with the form.
Can trigger alerts, field changes, or validations instantly.
Example:
If a user changes the Priority field on an Incident form, a Client Script can:
Display an alert
Change other field values (e.g., auto-set Impact and Urgency)
Validate input before submission
Incorrect Answer Choices
A . A server script ❌
Server-side scripts execute on the server, not in the browser.
These include Business Rules, Script Includes, and Scheduled Jobs.
They run after form submission, not during real-time user interactions.
C . A fix script ❌
Fix scripts are one-time scripts used for data corrections or instance updates.
They do not execute based on form interactions.
D . A business rule ❌
Business Rules run on the server and typically trigger on record insert, update, or delete.
They do not provide real-time alerts in the user's browser.
Reference:
ServiceNow Documentation: Client Scripts Overview
ServiceNow Developer Guide: Creating Client Scripts