The CreatorCon Call for Content is officially open! Get started here.

Error: g_form.getAppliedFieldName is not a function in Helsenki

jt110
Kilo Contributor

Hi

when I run my service now request on Helsenki version, I am getting error "TypeError: g_form.getAppliedFieldName is not a function" in the browser console for almost all the browsers and due to that post UI policy and client scripts are not executing. but it was working fine in Geneva version.

please suggest.

8 REPLIES 8

arron_ubhi
ServiceNow Employee
ServiceNow Employee

Hi Jeetendra,



I have come across this error before where this error was thrown within the browser console due to a Catalog UI Policy referencing a Catalog Item, where the Catalog UI policy contains a variable that is not part of the Catalog Item.



For example, let's say we have a Catalog Item called "Test Item 1", that has a Catalog UI Policy called "Test UI Policy 1"



The Catalog Item has variables called "Test Variable 1" and "Test Variable 2".



If the Catalog UI Policy "Test UI Policy 1"   has a Catalog UI Policy Action for a variable "Test Variable 3", then we would throw this error in the browser logs and therefore any other Catalog UI policy and Client Scripts would no longer run for this RITM.



This would be because "Test Variable 3" is not part of the Catalog Item "Test Item 1" and therefore we are referencing a variable that does not exist for that Catalog Item.



Hope this helps. Let me know if you have any further questions or concerns.




Best Regards,



Arron


jt110
Kilo Contributor

Ok Arron, I look into my code to fix. thanks


Hi Arron!



I had the very same issue, found "Test Variable 3" in one of the UI Policies, removed it and the issue still persists...Any idea what to do next?



Thanks!


shouvik
ServiceNow Employee
ServiceNow Employee

This is a issue in Helsinki Patch 0, Patch 1. Please refer to the Known Error article. https://hi.service-now.com/kb_view.do?sysparm_article=KB0596179