Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

client script error

Palmarp
Tera Contributor

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. site:www.servicenow.com

Hi im getting this error im unable run the client script can anyone help me out this. i have set the sys properties to false still im getting the same error.

1 REPLY 1

M Iftikhar
Tera Sage

Hello @Palmarp,

The message “New client-scripts are run in strict mode…” is actually just an info notice/annotation, not an error. It appears by default on new client script forms to remind you about script isolation settings.

If your client script itself isn’t working, then the issue is likely unrelated to that message.

Please share:

  • Your client script code, and

  • The scenario/trigger (onLoad, onChange, onSubmit, etc.)

so we can help identify what’s causing it not to run.

If my response helped, please mark it as the accepted solution so others can benefit as well.

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.