Courseiva
UI, Navigation and FormseasyMultiple ChoiceObjective-mapped

SNOW-CSA UI, Navigation and Forms Practice Question

Exhibit

// UI Policy Condition Script
current.variables.state == 2

Refer to the exhibit. A UI Policy is configured with the above condition to make the 'resolution_notes' field mandatory when the variable 'state' is 2. When state is set to 2, the field is still not mandatory. What is the most likely issue?

⚠ Common exam trap

ServiceNow often tests the distinction between table fields and catalog variables, and the trap here is that candidates assume 'state' refers to the variable because it is displayed on the form, but without the 'variables.' prefix, the condition references the underlying table field instead.

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

The condition uses 'state' instead of 'variables.state'

In ServiceNow UI Policies, when referencing a variable on a catalog item or record producer, you must prefix the variable name with 'variables.' (e.g., 'variables.state') because the condition is evaluated against the variable map, not the field directly. Using 'state' alone refers to the field on the current table (e.g., the task table), which is not the same as the catalog variable 'state'. Therefore, the condition never matches when the variable is set to 2, so the UI Policy does not fire.

Answer analysis

Option-by-option breakdown

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

  • The field is not in the form layout

    Why it's wrong here

    If the field were missing, it wouldn't appear at all; here it appears but is not mandatory.

  • The condition uses 'state' instead of 'variables.state'

    Why this is correct

    In a catalog UI Policy, variables are accessed using the 'variables' prefix; 'state' is not a valid variable reference.

  • The UI Policy is inactive

    Why it's wrong here

    An inactive UI Policy would cause no behavior at all; but the condition logic is the more likely issue.

  • The UI Policy is set to run on submit only

    Why it's wrong here

    If set to submit only, the mandatory would be triggered on submit; the symptom is missing client-side mandatory.

About these practice questions

Courseiva writes every SNOW-CSA question from scratch — 504 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-CSA 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-CSA exam.