SNOW-CSA Service Catalog and Workflows Practice Question
A catalog item uses a 'Catalog Client Script' to hide a variable when another variable is set to 'No'. However, the script is not working. The script is of type 'onChange' and the variable to hide is a 'Single Line Text'. What is the most likely cause?
⚠ Common exam trap
ServiceNow often tests the misconception that a missing `g_form.setDisplay()` call is the root cause, when in reality the variable's display property is locked by a UI policy or the variable's own configuration, which silently overrides the client script.
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 variable's 'Display' property is set to 'Static' or 'Read only'.
When a variable's 'Display' property is set to 'Static' or 'Read only', the client-side script cannot override that setting via `g_form.setDisplay()`. The catalog client script runs on the client, but the variable's display behavior is enforced by the platform's UI policy layer, which takes precedence over client script calls. This is a common misconfiguration where the variable's display property is locked, preventing the onChange script from hiding it.
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 variable type 'Single Line Text' does not support hiding.
Why it's wrong here
Any variable type can be hidden via script.
- ✗
The script is missing a 'g_form.setDisplay()' call.
Why it's wrong here
This is a common cause, but the question asks most likely; Display property is often overlooked.
- ✗
The script should be of type 'onSubmit' instead of 'onChange'.
Why it's wrong here
onChange is appropriate for reacting to value changes.
- ✓
The variable's 'Display' property is set to 'Static' or 'Read only'.
Why this is correct
If Display is static, client scripts cannot hide it.
Go deeper
Related to this question
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 →
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.