how To disable this on a per-script basis, configure this form and add the "Isolate script" field.

suraj kale1
Mega Contributor

Hi,

i'm facing this issue while creating new client script it shows this message then how to resolve this problem please help me . 

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.

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

On the client script form, you can personalize the form and bring the isolate script flag on the firm, then you can alter it per script basis.

Alternatively you can find your client script on the list view, and just personalize the list to bring the isolate script flag on the list, and change it for the script you need.

find_real_file.png

find_real_file.png

-Anurag

-Anurag

View solution in original post

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

On the client script form, you can personalize the form and bring the isolate script flag on the firm, then you can alter it per script basis.

Alternatively you can find your client script on the list view, and just personalize the list to bring the isolate script flag on the list, and change it for the script you need.

find_real_file.png

find_real_file.png

-Anurag

-Anurag

Ankur Bawiskar
Tera Patron
Tera Patron

@suraj kale 

for your client script in order for DOM to work

1) Ensure Isolate Script Field is set to false

2) This field is not on form but from list you can make it false

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader