Courseiva
User Interface DevelopmentmediumMultiple SelectObjective-mapped

SNOW-CAD User Interface Development Practice Question

Which TWO client-side APIs are available in a Service Portal widget to interact with form fields?

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

c.data (to bind data to the template)

The correct answers are B and C. In a Service Portal widget, `c.data` is the primary mechanism for data binding between the server and client. `g_form.setValue()` is available when the widget includes a form (e.g., using the Form widget or a custom form). Option A is incorrect because `spUtil.setValue()` does not exist; `spUtil` has methods like `update` and `addInfoMessage`. Option D is wrong because `g_list.setValue()` is for list views, not standard forms. Option E is incorrect because `$scope` is AngularJS's scope but the recommended pattern in Service Portal is to use `c.data` for data binding.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • spUtil.setValue()

    Why it's wrong here

    spUtil does not have a setValue method.

  • c.data (to bind data to the template)

    Why this is correct

    c.data is the official way to pass data between server and client in widgets.

  • g_form.setValue() (to set a field value in a form)

    Why this is correct

    g_form works in portal forms within widgets.

  • g_list.setValue() (to set a value in a list)

    Why it's wrong here

    g_list is for list fields, not standard form fields.

  • $scope (to set values in the controller)

    Why it's wrong here

    $scope is available but not recommended; c.data is preferred.

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 →

How Courseiva writes practice questions · Editorial policy

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.