SNOW-CSA Service Catalog and Workflows Practice Question
A user complains that when they submit a catalog item, they receive an error: 'The variable is mandatory but has no value.' However, the variable is not marked as mandatory in the item's variable definition. What could be the cause?
⚠ Common exam trap
Test-takers frequently assume mandatory status is only set in the variable definition or via UI Policies, overlooking that Catalog Client Scripts of type 'onSubmit' can dynamically enforce mandatory validation at submission time.
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
✓
A Catalog Client Script of type 'onSubmit' sets the variable mandatory.
A Catalog Client Script of type 'onSubmit' can dynamically set a variable as mandatory using the `g_form.setMandatory('variable_name', true)` method. This overrides the variable's definition in the catalog item, causing the 'mandatory but has no value' error even when the variable is not marked mandatory in the item's variable definition.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
A Catalog Client Script of type 'onSubmit' sets the variable mandatory.
Why this is correct
Client scripts can enforce mandatory before submission.
- ✗
A Business Rule on the request table sets the variable mandatory.
Why it's wrong here
Business Rules run server-side after submission, not before.
- ✗
A UI Policy on the record producer makes the variable mandatory.
Why it's wrong here
UI Policies are for forms, not catalog variables.
- ✗
The variable is mandatory in the parent catalog category.
Why it's wrong here
Mandatory is defined per item, not inherited.
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.