SNOW-CSA Service Catalog and Workflows Practice Question
An administrator notices that a catalog client script is not firing when a variable changes. The script is set to 'onChange' and the variable reference is correct. The script uses g_form.setValue to update another variable. However, the other variable does not get updated. What could be the issue?
⚠ Common exam trap
It's easy for candidates to assume g_form.setValue always works without side effects, but they forget that setting a value programmatically triggers the onChange event of the target variable, which can execute another script that overrides the change.
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 being updated has a catalog client script that clears it
When a catalog client script uses g_form.setValue to update another variable, that action triggers the onChange event for the target variable. If the target variable has its own onChange catalog client script that clears its value, that script will execute after the setValue, effectively overriding the update. This creates a conflict where the first script sets a value, but the second script immediately clears it, resulting in the variable appearing unchanged.
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 being updated has a catalog client script that clears it
Why this is correct
If the target variable has an onChange script that sets its value back, it will override the change.
- ✗
The other variable's value is protected by a UI policy
Why it's wrong here
UI policies run after client scripts and could override, but the most direct cause is the target variable's own onChange script.
- ✗
The script is running on the server side
Why it's wrong here
Catalog client scripts run client-side; server-side scripts are separate.
- ✗
The script is using g_form.setValue incorrectly for that variable type
Why it's wrong here
g_form.setValue works for all variable types on the client.
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.