To disable this feature for all new globally-scoped client-side scripts set the system property "

ruthra_85
Tera Contributor

Can Any one help me how to get "To disable this feature for all new globally-scoped client-side scripts set the system property "glide.script.block.client.globals" to false." in service now

 

Please explain in clear steps.....also have another question, if this is true ? how script cannot work ?

3 REPLIES 3

Kieran Anson
Kilo Patron

glide.script.block.client.globals controls whether a client script can access JavaScript global variables.

 

In scoped applications, this is the default behaviour. A scoped client script can not access 'window' or jQuery as examples.

 

By setting glide.script.block.client.globals to true, all scripts in the global scope would be prevented from accessing these global JavaScript variables.

 

I'm not sure where you've got your quoted message from. But you likely only need to change this property for scoped applications when you need the scoped application to access global JavaScript variables. You'd then create a system property in that scope with a suffix of glide.script.block.client.globals and set it to false

ruthra_85
Tera Contributor

Can you help me how to get it done ?

What do you mean? Get what done?