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

How set the system property "glide.script.block.client.globals" to false.

Georgi Popov1
Kilo Contributor

Hello!
This is my the system property "glide.script.block.client.globals" :
find_real_file.png

But in every my file on top have:

New client-scripts are run in strict mode, with direct DOM access disabled. Access to jQuery, prototype and the window object are likewise disabled. To disable this on a per-script basis, configure this form and add the "Isolate script" field. To disable this feature for all new globally-scoped client-side scripts set the system property "glide.script.block.client.globals" to false.

How can fix it?

7 REPLIES 7

Hi,

I am getting same error. I am working on ServiceNow New York version. I added property and uncheck "Isolate script" field value. but still client script is not working. please suggest me solution.

srinarayaniselv
Tera Contributor

Hi,

I am also facing similar issue.

Followed below steps

Steps:

  • I have added "glide script block client globals" system property in global scope.
  • Added 'Isolated field" and made it 'false' in client script.

Client script contains below code which is not working.

---------------------------------------------------------------------

Script:

str.includes('chat');

----------------------------------------------------------------------

Client script is working fine for 'Admin user'.It is not working for 'service desk' role users. As per my requirement,string operation 'includes' function should work for service-desk user.Due to this restriction,it is not working as expected.Please help me on this.

 

Thanks,

Sri

NAGARJUN KARUKU
Kilo Explorer

Hello,

 

I'm newly Created PDi for Best Practice. I have written onLoad script while perform not been Reflected and error as foolows

 

New client-scripts are run in strict mode, with direct DOM access disabled. Access to jQuery, prototype and the window object are likewise disabled. To disable this on a per-script basis, configure this form and add the "Isolate script" field. To disable this feature for all new globally-scoped client-side scripts set the system property "glide.script.block.client.globals" to false.

 

Could you please help me out to avaoid and step by process