Question 120 of 500
User Interface DevelopmentmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to create a UI Policy that adds a message when the condition state=Closed is true. This is correct because UI Policies are the declarative, no-script feature in ServiceNow’s UI16 that allow you to display a message—informational, warning, or error—based on field value changes, running entirely on the client side without custom scripting. On the ServiceNow Certified Application Developer (CAD) exam, this question tests your understanding of client-side declarative configuration versus scripted alternatives like Client Scripts or ACLs; a common trap is choosing a Client Script because it can also show messages, but the question explicitly requires “without custom scripting,” making UI Policies the only valid choice. Remember the memory tip: “UI Policy for a message, no script needed—just a condition and a message.”

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 is designing a custom form in the standard UI (UI16) and needs to add a message that displays only when the 'state' field is 'Closed'. Which feature should be used to achieve this without custom scripting?

Question 1mediummultiple choice
Full question →

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

Create a UI Policy that adds a message when the condition state=Closed is true.

UI Policies are the correct declarative feature in UI16 to show a message based on a field value without custom scripting. They run on the client side and can display informational, warning, or error messages when a specified condition (like state=Closed) is met, making option A the appropriate choice.

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.

  • Create a UI Policy that adds a message when the condition state=Closed is true.

    Why this is correct

    UI Policies can conditionally display messages without scripting.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Create a form section and set its condition via the 'Conditional' property.

    Why it's wrong here

    Form sections cannot be conditionally displayed based on field values.

  • Write a Client Script that shows a message when state changes to Closed.

    Why it's wrong here

    Requires scripting; not the low-code approach.

  • Use a UI Macro with a condition that checks the state field.

    Why it's wrong here

    UI Macros require scripting and are not low-code.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse UI Policies with Client Scripts, thinking that any client-side behavior requires scripting, when in fact UI Policies provide a no-code alternative for simple conditional actions like showing messages.

Detailed technical explanation

How to think about this question

UI Policies in ServiceNow are evaluated client-side using a declarative condition builder, which translates to a JavaScript expression behind the scenes. When the condition is true, the UI Policy can set field attributes (like mandatory, visible) and display messages of type 'info', 'warning', or 'error' in a banner at the top of the form. This approach avoids the need for client scripts and leverages the platform's built-in no-code capabilities.

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.

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.

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: Create a UI Policy that adds a message when the condition state=Closed is true. — UI Policies are the correct declarative feature in UI16 to show a message based on a field value without custom scripting. They run on the client side and can display informational, warning, or error messages when a specified condition (like state=Closed) is met, making option A the appropriate choice.

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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on SNOW-CAD

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. 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?

easy
  • A.Business Rule with 'when to run' set to 'before' and script to call g_scratchpad.message
  • B.UI Policy with condition: 'Priority changes' and action script to call g_form.showFieldMsg()
  • C.onLoad client script that checks the current value of priority and shows a message
  • D.Data Policy with condition on priority field and message set
  • E.onChange client script with a condition to check newValue and call g_form.showFieldMsg()

Why B: 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.

Last reviewed: Jun 11, 2026

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.

Loading comments…

Sign in to join the discussion.

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.