Courseiva
Core Application DevelopmenteasyMultiple ChoiceObjective-mapped

SNOW-CAD Core Application Development Practice Question

A developer needs to create a UI Policy that hides a field when a checkbox is checked. The UI Policy has a condition: 'State is 2'. The field should be hidden when the checkbox is checked and state is 2. What is the correct approach?

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

Set condition to 'state=2' and add a script action that sets the field's visible attribute based on the checkbox value

UI Policies have both a condition and actions. The script action can evaluate additional conditions. The best practice is to set the condition to the primary filter (state=2) and add a script action to set the field's visibility based on the checkbox. Option A describes that correctly.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Set condition to 'state=2' and add a script action that sets the field's visible attribute based on the checkbox value

    Why this is correct

    Correct; the condition runs on server, and the script runs client-side to react to checkbox changes.

  • Add both conditions in the condition builder: checkbox=true AND state=2

    Why it's wrong here

    Incorrect; UI Policy conditions are evaluated on the server before the form loads, so dynamic client-side changes like checkbox state are not available in the condition.

  • Set condition to 'state=2' and add a reverse if false action with a condition on the checkbox

    Why it's wrong here

    Incorrect; reverse if false does not evaluate client-side conditions.

  • Use a Client Script instead of UI Policy

    Why it's wrong here

    Incorrect; client scripts can do the same, but the question asks for UI Policy approach.

About these practice questions

Courseiva writes every SNOW-CAD question from scratch — 481 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.