onChange error message

June Anderson
Tera Contributor

I have an error message that sudent appears on my publication form, cannot identify why. The error in question is 

 

"onChange script error: TypeError: Cannot read properties of null (reading 'up') function () { [native code] }"

 

Please Help

 

JuneAnderson_0-1666704464593.png

 

2 ACCEPTED SOLUTIONS

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

This occurs when one of you on change client script is unable to read any field on the form. Check which onchnage client script is causing the issue, then in the script of you have any field which the script is not bale to read maybe because the field is not available on the form.

 

You can read a support article for a similar issue:-

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0856441

 

Please mark my answer as correct based on Impact.

View solution in original post

Ahmmed Ali
Mega Sage

Hello,

 

There should be one client script defined onchange of Product type field. Validate if the script has any errors, potentially there should be undefined variable name or you might not be getting value from in the variable from which you are reading values.

 

It would be helpful if you can post the client script here for validation.

 

Thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

3 REPLIES 3

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

This occurs when one of you on change client script is unable to read any field on the form. Check which onchnage client script is causing the issue, then in the script of you have any field which the script is not bale to read maybe because the field is not available on the form.

 

You can read a support article for a similar issue:-

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0856441

 

Please mark my answer as correct based on Impact.

Ahmmed Ali
Mega Sage

Hello,

 

There should be one client script defined onchange of Product type field. Validate if the script has any errors, potentially there should be undefined variable name or you might not be getting value from in the variable from which you are reading values.

 

It would be helpful if you can post the client script here for validation.

 

Thank you,

Ali

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Rachel Gomez
Giga Expert

The onchange event occurs when the value of an element has been changed. For radiobuttons and checkboxes, the onchange event occurs when the checked state has been changed.

Regards,

Rachel Gomez