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

suvro
Mega Sage
Mega Sage

isolated is a checkbox which you need to un-select if  you need to do any dom manipulation in client script.

 

Any client script written on parent table which needs to be applicable to the child as well then it needs to be inherited

 

find_real_file.png

Hi Satish,

 

I am glad to know that, my response was helpful to you. Please mark my response as correct and close this thread so that other also may get benefitted by it.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Inherited - any client script running on parent will also run on child when this checkbox is true

Isolate scrip - if uncheck it would allow your script to have DOM manipulation such as window object; if checked then it will throw an error

Regards
Ankur

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

@satish samrat

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

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