Notifications

230 views

Symptoms


The use of the "g_form" object and its functions such as setValue() and getValue() are not working as expected when they are used in a service portal widget's client controller field.

Release


All releases

Cause


"g_form" as a global object cannot be used in a widget client controller so its functions are not supported either.

Please refer to the following documentation for this information:

https://docs.servicenow.com/bundle/london-servicenow-platform/page/build/service-portal/reference/widget-api-reference.html#d761990e43

Resolution


Avoid using "g_form" and its associated functions in the widget's client controller and instead utilize alternatives such as (catalog) UI policies and/or (catalog) Client Scripts to affect variables/fields.

Additional Information


Widget API reference

Article Information

Last Updated:2018-10-16 15:20:59
Published:2018-10-16