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

I too experience this issue and noticed some strange behavior - I can't access the context menu from within the RITM or TASK view of the catalog item which is producing the error and I also cannot cannot click any field icons for example the lookup icon and the information icons, I can however select the DatePicker.



Has anyone else experienced this?


In our case, the watch list picker cannot be expanded anymore if this error happens..


My (very dirty) workaround was to disable all Catalog UI Policies in the RITM form.



Now I have created a small script which has to be executed on the Scripts - Background



Be careful! Use at own risk! because it deletes the faulty catalog ui policy actions!



var a = new GlideRecord('catalog_ui_policy_action');


a.query();


while(a.next()){


      var sysid = a.catalog_variable.substring(3, 35);


      var b = new GlideRecord('item_option_new');


      b.addQuery('sys_id', sysid);


      b.query();


      if(b.next()){


              if(b.cat_item == a.catalog_item){


              }


              else{


                      a.deleteRecord();


              }


              if (b.active == false){


                      a.deleteRecord();


              }


      }


      else{


              a.deleteRecord();


      }


}



I hope that helps!



Cheers Bernd


If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



If you are viewing this from the community inbox you will not see the correct answer button.   If so, please review How to Mark Answers Correct From Inbox View.



Thank you