glide.script.block.client.globals - false : still blocks native jQuery

cc11
Tera Contributor

Looking for some help,

I need to use native jQuery scripts on my custom application forms.

I created sys_property glide.script.block.client.globals and set it to false as shown in the screenshot below.

But I still see the error (TypeError: $ is not a function) on loading my client scripts.

find_real_file.png

I work on Geneva instance.

Thank you,

Yogesh

1 ACCEPTED SOLUTION

Shishir Srivast
Mega Sage

Hi Yogesh,



You need to create a property with same scoped application and it will work. I just tried and it worked for me. Please follow the below steps, hope this will help you.



Change your application to Test Scope and then create glide.script.block.client.globals with value false in sys_properties.list table (when you are trying to create system property be in your test scoped application then Name will automatically be suffix with scoped application + property name) please refer the screenshot below.


find_real_file.png


once done then use the below code, with your required field name.


find_real_file.png


and it will work, see the result below please.



Before:


find_real_file.png


After:


find_real_file.png


View solution in original post

10 REPLIES 10

Thanks Shishir & Pradeep,


your suggestions resolved the issue and also helped understand a few things.



Thank you,


Yogesh


Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

You are very welcome Yogesh. Thanks for participating in the community!


Nope, I set all my stuff to the "Global" application scope, and setting the System Property didn't work.   I explained in detail here:   Re: Use getElementById in catalog client script


Hi Pradeep,

 

To opt out of the best practice create the following property in your scope and set it to false. glide.script.block.client.globals.

Above mentioned procedure is working while iam creating new records, It is only working for old records.

Please help me with this..

While creating a new record it is not displaying information icon beside the reference field but after selecting any value reference value, information icon is appearing.

 

find_real_file.png

 

After selecting any value in the reference field ,info-icon is appearing on the form.

find_real_file.png

 

please help me on this,

thanks in advance

Santhosh23
Tera Expert

Just curious to understand, does it will have any impact to existing things ?