SNOW-CSA Application Rules, ACL and Notifications Practice Question
A catalog client script is supposed to show a variable when another variable equals 'Yes'. The script runs on 'onChange' of the first variable. However, the second variable does not appear. What is a possible cause?
⚠ Common exam trap
ServiceNow often tests the misconception that a client script will automatically apply to all catalog items unless explicitly scoped, when in fact the default behavior requires explicit association or setting the catalog item field to 'All'.
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 client script is not set to 'All' catalog items.
A client script that is not set to run on 'All' catalog items will only execute on the specific catalog item it was created for. If the script is scoped to a different item, the onChange event for the first variable on the current item will not trigger the script, so the second variable will never be shown. In ServiceNow, catalog client scripts must be explicitly associated with the correct catalog item or set to 'All' to apply globally.
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 g_form.setDisplay() method is used incorrectly.
Why it's wrong here
Incorrect use could cause issues, but the stem says the script runs.
- ✓
The client script is not set to 'All' catalog items.
Why this is correct
If the script is restricted to specific items, it won't run on others.
- ✗
The condition is written with 'g_form.getValue' for the wrong variable.
Why it's wrong here
If the condition is wrong, the script might not show the variable, but the stem implies the script runs.
- ✗
The script is set to 'onLoad' instead of 'onChange'.
Why it's wrong here
The script is set to onChange, so it runs when the variable changes.
Go deeper
Related to this question
About these practice questions
One of 504 original SNOW-CSA 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 →
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.