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

Prepare effectively for the ServiceNow CAD certification. Study with detailed questions and explanations. Enhance your skills and knowledge for success in your exam!

Multiple Choice

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

Explanation:
g_form.getReference is a GlideForm API used in the classic form UI to load a reference field’s value asynchronously. In Service Portal, the client scripting environment does not include g_form, so that method isn’t available and cannot work there. To get reference data in the portal, use a GlideAjax call to a Script Include (or fetch the data server-side in the widget and expose it to the client) and bind it to the widget’s model.

g_form.getReference is a GlideForm API used in the classic form UI to load a reference field’s value asynchronously. In Service Portal, the client scripting environment does not include g_form, so that method isn’t available and cannot work there. To get reference data in the portal, use a GlideAjax call to a Script Include (or fetch the data server-side in the widget and expose it to the client) and bind it to the widget’s model.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy