Courseiva
Core Application DevelopmenteasyMultiple ChoiceObjective-mapped

SNOW-CAD Core Application Development Practice Question

A developer needs to display a warning message to the user when a specific field value changes on a form, but the record should still be savable. Which approach should be used?

⚠ Common exam trap

Candidates often confuse client-side warnings with server-side blocking mechanisms, often choosing a Business Rule (Option B) because they think gs.addErrorMessage() can display a warning before save, but it actually runs after the record is committed, making it unsuitable for real-time field change notifications.

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 an 'onChange' Client Script using g_form.addErrorMessage() or g_form.showFieldMsg().

An 'onChange' Client Script runs on the client side when a specific field value changes, allowing the developer to display a warning message using g_form.addErrorMessage() or g_form.showFieldMsg() without preventing the record from being saved. This approach ensures the user sees the warning interactively while still being able to submit the form, which matches the requirement exactly.

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 with a condition and a UI message.

    Why it's wrong here

    UI Policies can show messages but also affect field states, which is overkill for just a warning.

  • Create a Business Rule that uses gs.addErrorMessage().

    Why it's wrong here

    gs.addErrorMessage() runs server-side and returns the message on the next server interaction, not instantly client-side.

  • Create an 'onChange' Client Script using g_form.addErrorMessage() or g_form.showFieldMsg().

    Why this is correct

    Client Script 'onChange' can display a message client-side without preventing save.

  • Create a Data Policy for the field and set a warning message.

    Why it's wrong here

    Data Policies are for enforcing mandatory/read-only, not for displaying warnings.

About these practice questions

One of 481 original SNOW-CAD practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.