I’m getting an error in my code and I’ve narrowed the issue down to two lines (if I comment them out then the error doesn’t show)
Here are the problematic lines –
var rowcnt = table.row.length;
var colcnt = table.row.[0]cells.length;
Unfortunately I cannot share any of the other code and this is written from memory at the moment but any help would be appreciated!
Also worth noting that I can only use JavaScript ES5 and this is within ServiceNow so there are limitations.
Thank you in advance!!
Tried changing the names of the variables – only way I’ve seen the error disappear is with commenting the code so that it doesn’t run.
I have also looked at the Console when reloading the page and it does show a websocket error but I’m unsure whether this could cause the error message I’m seeing on the page?

