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.

in client script what is inherited and isolated script

satish samrat
Kilo Contributor

in client script what is inherited and isolated script, what is the purpose and for what mainly we use it?

1 ACCEPTED SOLUTION

Raghu Ram Y
Kilo Sage

Hi @satish samrat 

Inherit : For example, a client script on the task table can be inherited to tables that extend it, like the incident, change, and problem tables. To allow tables to inherit a client script, the inherit checkbox must be set.

Isolate: Client-scripts will run in strict mode, with direct DOM access disabled so access to jQuery, prototype and the window object are likewise disabled. so if you want to access any DOM object in such scenarios you need to make it "true/false"

I hope it helps you, if so please mark my response as correct and helpful.

View solution in original post

6 REPLIES 6

Raghu Ram Y
Kilo Sage

Hi @satish samrat 

Inherit : For example, a client script on the task table can be inherited to tables that extend it, like the incident, change, and problem tables. To allow tables to inherit a client script, the inherit checkbox must be set.

Isolate: Client-scripts will run in strict mode, with direct DOM access disabled so access to jQuery, prototype and the window object are likewise disabled. so if you want to access any DOM object in such scenarios you need to make it "true/false"

I hope it helps you, if so please mark my response as correct and helpful.

Kailash Bhange
Kilo Sage

Hi All,
Please review below Article for Client Script details and mark helpful if it helps you.
World of Client-side Scripts: #1

 

Thank you!

Kailash Bhange

LinkedIn