The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Can't access DOM, jQuery after having disabled "Isolated script"

T_Fesenko
Tera Contributor

Hello, 

I wanted to perform DOM manipulation, for which I needed to access the DOM in my client script. After reading, I found that in order to have access to DOM and jQuery the form of the client script must be configured and the isolated script property must be set to false (unclicked). 

However, upon doing so, trying to use document.getElementByID() throws an error in the console, 'document' is read as null. When trying to console.log(document), null is thrown in the console.

Why can't I access the DOM and jQuery still?

find_real_file.png

find_real_file.png

5 REPLIES 5

BoutrosB
ServiceNow Employee
ServiceNow Employee

I am facing same issue, any clear solution for that?