- A
Business Rule with 'when to run' set to 'before' and script to call g_scratchpad.message
Why wrong: Wrong: Business Rules run server-side and cannot directly display client messages.
- B
UI Policy with condition: 'Priority changes' and action script to call g_form.showFieldMsg()
Correct: UI Policies can run client-side scripts on field change.
- C
onLoad client script that checks the current value of priority and shows a message
Why wrong: Wrong: onLoad only runs once when form loads, not on field change.
- D
Data Policy with condition on priority field and message set
Why wrong: Wrong: Data Policies are server-side and do not display dynamic client messages.
- E
onChange client script with a condition to check newValue and call g_form.showFieldMsg()
Correct: onChange client script triggers on field change and can show messages.
SNOW-CAD User Interface Development Practice Question
This SNOW-CAD practice question tests your understanding of user interface development. Examine the command output carefully: the correct answer depends on what the output actually shows, not on general recall alone. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A developer needs to display a warning message to the user when the 'priority' field is changed to '1 - Critical'. Which TWO client-side implementations can achieve this?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
UI Policy with condition: 'Priority changes' and action script to call g_form.showFieldMsg()
Option B is correct because a UI Policy with the condition 'Priority changes' triggers an action script when the priority field is modified, allowing the use of `g_form.showFieldMsg()` to display an inline warning message on the field. Option E is correct because an onChange client script fires when the 'priority' field changes, and within it you can check `newValue` against '1 - Critical' and call `g_form.showFieldMsg()` to show the warning. Both are client-side implementations that respond to field changes without a server round-trip.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Business Rule with 'when to run' set to 'before' and script to call g_scratchpad.message
Why it's wrong here
Wrong: Business Rules run server-side and cannot directly display client messages.
- ✓
UI Policy with condition: 'Priority changes' and action script to call g_form.showFieldMsg()
Why this is correct
Correct: UI Policies can run client-side scripts on field change.
Related concept
Read the scenario before looking for a memorised answer.
- ✗
onLoad client script that checks the current value of priority and shows a message
Why it's wrong here
Wrong: onLoad only runs once when form loads, not on field change.
- ✗
Data Policy with condition on priority field and message set
Why it's wrong here
Wrong: Data Policies are server-side and do not display dynamic client messages.
- ✓
onChange client script with a condition to check newValue and call g_form.showFieldMsg()
Why this is correct
Correct: onChange client script triggers on field change and can show messages.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates confuse server-side implementations (Business Rules, Data Policies) with client-side ones, or mistakenly think an onLoad script can detect a field change that occurs after the form has loaded.
Detailed technical explanation
How to think about this question
Under the hood, `g_form.showFieldMsg()` is a GlideForm client-side API that injects an HTML element with a message class into the field's DOM, supporting types like 'info', 'warning', or 'error'. The onChange client script uses the `newValue` parameter to compare against the desired value, while the UI Policy's 'Priority changes' condition internally listens for the same `onChange` event but is declarative. A common real-world scenario is enforcing a mandatory confirmation before escalating a ticket to critical priority, where the message must appear immediately on field change, not on form load or server-side validation.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A practitioner preparing for the SNOW-CAD exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
User Interface Development — study guide chapter
Learn the concepts, then practise the questions
- →
User Interface Development practice questions
Targeted practice on this topic area only
- →
All SNOW-CAD questions
500 questions across all exam domains
- →
ServiceNow Certified Application Developer CAD study guide
Full concept coverage aligned to exam objectives
- →
SNOW-CAD practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related SNOW-CAD practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Working with Data practice questions
Practise SNOW-CAD questions linked to Working with Data.
Platform Features and Integration practice questions
Practise SNOW-CAD questions linked to Platform Features and Integration.
Integrating and managing application data practice questions
Practise SNOW-CAD questions linked to Integrating and managing application data.
Automating application logic with business rules and scripts practice questions
Practise SNOW-CAD questions linked to Automating application logic with business rules and scripts.
Application development using ServiceNow Studio practice questions
Practise SNOW-CAD questions linked to Application development using ServiceNow Studio.
Creating and customizing tables and data practice questions
Practise SNOW-CAD questions linked to Creating and customizing tables and data.
Designing interfaces and user experiences practice questions
Practise SNOW-CAD questions linked to Designing interfaces and user experiences.
Core Application Development practice questions
Practise SNOW-CAD questions linked to Core Application Development.
User Interface Development practice questions
Practise SNOW-CAD questions linked to User Interface Development.
SNOW-CAD fundamentals practice questions
Practise SNOW-CAD questions linked to SNOW-CAD fundamentals.
SNOW-CAD scenario practice questions
Practise SNOW-CAD questions linked to SNOW-CAD scenario.
SNOW-CAD troubleshooting practice questions
Practise SNOW-CAD questions linked to SNOW-CAD troubleshooting.
Practice this exam
Start a free SNOW-CAD practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SNOW-CAD question test?
User Interface Development — This question tests User Interface Development — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: UI Policy with condition: 'Priority changes' and action script to call g_form.showFieldMsg() — Option B is correct because a UI Policy with the condition 'Priority changes' triggers an action script when the priority field is modified, allowing the use of `g_form.showFieldMsg()` to display an inline warning message on the field. Option E is correct because an onChange client script fires when the 'priority' field changes, and within it you can check `newValue` against '1 - Critical' and call `g_form.showFieldMsg()` to show the warning. Both are client-side implementations that respond to field changes without a server round-trip.
What should I do if I get this SNOW-CAD question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Last reviewed: Jun 25, 2026
This SNOW-CAD practice question is part of Courseiva's free ServiceNow certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SNOW-CAD exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.