Missing element in HTML / non-interactive incident form

martinkruml
Tera Guru

Hello!

 

I am somewhat newer to ServiceNow, but I can navigate myself around pretty fairly. 

I just encountered a problem, creating specific incident form (based on criteria) and continuously building up (UI actions, Business rules, etc.). Now I wanted to add some Client Scripts+Script Include, but the incident form became "non-interactive" in a way, that I couldn't use magnifying glass to look up references, no recommandation while writing a user's name and such. Only fix was to disable Client Scripts+Script Include (even if I did only Client Script, it was causing the same issue). I tried to handle this via chatgpt, which just pointed me towards "missing HTML" element. 

 

Last "changes" which occur to me when I did something with HTML, could be in service portal page, but I don't think it reaches into incident form.

I also checked other documentation, which recommended to check UI actions/policies, deactivating those didn't solve the problem. 

 

Any help is appreciated

Thank you!

interactive form.png

non-interactive form.png

  

1 ACCEPTED SOLUTION

Ok I think it is pointing to script include, you have written something which is not able to process, check your client and script include both, I think error is on script include.

Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

4 REPLIES 4

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Right click on browser+Inspect element and go to 'console' tab you will see some error which will point to script causing the issue. In my opinion you must be using 'gs' object in client script because of which you are seeing this behavior.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hi Musab,

Only error I found was this.

Error in console.png

Ok I think it is pointing to script include, you have written something which is not able to process, check your client and script include both, I think error is on script include.

Please hit like and mark my response as correct if that helps
Regards,
Musab

Thanks a lot. I found out, it was causing this "function" at the top. I deleted the first lines and belonging brackets and it works now.

 

 

martinkruml_0-1720701019616.png