Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

now working the client script on incident

keerthikoru
Kilo Contributor
 
am not gettting the client script on incident form it is showing the glide it is showing the  Message "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.
 

but i have checked it again in the system properties it was showing as false am not getting the onchange onload onsubmit oncelledit  not getting even  default  alert or error or addinfomsg from these

2 REPLIES 2

Sandeep Rajput
Tera Patron

@keerthikoru This is not an error but an informative messages/annotation which usually shows up on the script forms. This should not be causing any issues for your script.

Tanushree Maiti
Giga Sage

Hi @keerthikoru 

 

In ServiceNow, "isolate script" is a checkbox field on a client script form that controls whether the script runs in strict mode .By default, new client scripts are run in strict mode and not allow DOM or window objects.

If you script needs to make use of either DOM or prototype / windows objects, you need to isolate the script so that the system allows it for your script.

 

This "isolate script"  checkbox marked as checked encourages developers to use supported ServiceNow APIs (like g_form and g_user) for form manipulation and data access, which are more stable and less likely to break with system upgrades.

 

The message "New client-scripts are run in strict mode, with direct DOM access disabled. ....." is an informational message within the ServiceNow platform, which indicates specific security and best-practice enforcement for new client-side JavaScript code.

 

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: