onSubmit script error: TypeError: Cannot read properties of null (reading 'hasAttribute'):

sayan3
Tera Contributor

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 

4 REPLIES 4

Sai Kumar B
Mega Sage

it is already set to false.

Hitoshi Ozawa
Giga Sage

Not sure if this is the cause but gel() isn't supported in service portal.

Puneet Hegde1
Tera Guru

@Servicenow , @itsm users & @Sayan @Hitoshi Ozawa @Sai Kumar B ,
Does anyone have a solution for it, as I'm facing the same issue? I have checked the client script, and I don't have any on submit client script on sc_req_item table, still getting error when I tried to update the ritm record.

PuneetHegde1_0-1761392741625.png