onSubmit script error: TypeError: Cannot read properties of null (reading 'hasAttribute'):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2021 09:29 PM
Hello Everyone,
We are facing a issue that is for an existing request for a particular catalog item while we are trying to update and save the request.
we are getting below error.
onSubmit script error: TypeError: Cannot read properties of null (reading 'hasAttribute'):
function() {
saveAllSelected([ gel(id) ], [ gel(ref) ], ',', '\\', '--None--');
}
How to fix this issue?
refer screenshot
Any help would be highly appreciated.
Thanks,
Sayan Ghosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2021 09:54 PM
Hi
Uncheck the Isolate checkbox and re-test
For more info - https://community.servicenow.com/community?id=community_blog&sys_id=c5c46364dbba6b007d3e02d5ca9619cb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2021 12:24 AM
it is already set to false.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2021 11:11 PM
Not sure if this is the cause but gel() isn't supported in service portal.