- My View
$ is not working service portal after upgrade from Helsinki to Jakarta.
Trowing an error: $ is not a function.
I am using $ sign in my onChange Script to hide buttons in service portal.
We were in Helsinki at that time my code was working properly, Recently we upgraded to Jakarta, after upgrade I am getting an error in console log.
For refrence please find the screen shot.
Client script code: Written on variable set.
$('manage_attachments').hide(); $('submit_now').hide(); g_form.showFieldMsg('inc_impact', 'info');
Can anyone guide me on this?
HI Nithin, if you used the scoped application $ is not work in service-now https://community.servicenow.com/community/develop/blog/2015/10/01/scoped-applications-and-client-scripts-a-primer If it's an upgrade issue you need raise the hi ticket
Please mark your question as answered if it resolves your issue.
Please Hit ✅Correct, ⭐️Helpful, or ❣️Like depending on the impact of the response
It might not be clear but effectively you're limited to a subset of the dom. This page goes over the available things for g_form and the dom.
Those are not supported.
Check out my blog - blog.jacebenson.com
The following globals and APIs are unavailable in client scripts and catalog client scripts used in the Service Portal: