The g_form.getReference() function works in the Service Portal client script.

Prepare for the ServiceNow CAD Exam with comprehensive flashcards and multiple-choice questions. Each query offers hints and explanations. Ensure your success on the exam!

Multiple Choice

The g_form.getReference() function works in the Service Portal client script.

Explanation:
g_form.getReference() is part of the GlideForm API used on forms in the classic UI. Service Portal runs in a separate, Angular-based environment and does not expose the g_form object, so this method isn’t available in Service Portal client scripts. To resolve a reference value in the portal, you’d typically use a server call (such as GlideAjax or a Script Include) and bind the result in the portal widget instead. Hence, the statement is false.

g_form.getReference() is part of the GlideForm API used on forms in the classic UI. Service Portal runs in a separate, Angular-based environment and does not expose the g_form object, so this method isn’t available in Service Portal client scripts. To resolve a reference value in the portal, you’d typically use a server call (such as GlideAjax or a Script Include) and bind the result in the portal widget instead. Hence, the statement is false.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy