SNOW-CAD Designing interfaces and user experiences Practice Question
Exhibit
// UI Policy Script
function onCondition() {
if (g_form.getValue('urgent') == 'true') {
g_form.setMandatory('reason', true);
}
}Refer to the exhibit. A UI Policy is configured to run 'On Condition' with the condition 'Urgent is true'. Users report that when they check the 'Urgent' checkbox, the 'Reason' field does not become mandatory. What is the most likely cause?
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 script uses getValue('urgent') but the field name is 'u_urgent'.
The script uses getValue('urgent') but the actual field name is 'u_urgent' as per the condition (UI Policy condition uses 'Urgent' which maps to 'u_urgent' in the database). The mismatch causes the script to not trigger properly.
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 UI Policy should be set to 'On Load' only.
Why it's wrong here
On Change is needed to react to the checkbox change.
- ✓
The script uses getValue('urgent') but the field name is 'u_urgent'.
Why this is correct
The field name in the UI Policy condition is 'Urgent' which corresponds to 'u_urgent' in scripts.
- ✗
The condition should be set to 'Urgent is false'.
Why it's wrong here
The condition should be true, not false.
- ✗
The script should use g_form.setValue instead of setMandatory.
Why it's wrong here
setMandatory is the correct method to make a field mandatory.
Go deeper
Related to this question
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 →
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.