onChange script error: TypeError: Cannot read properties of undefined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2022 05:30 PM
Hi, I have not modified the client script related to the Software Entitlement, and this error occurs.
Does anyone know why it's happening? Could it be a system or plug-in version problem?
- Labels:
-
Script Debugger
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2022 06:11 PM
HI the issue is with one of your client script looking for getTotalcost and gettime span. you might need to find which client script has these lines. IT says values are undefined. so there is a script which does this calculation
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2022 08:50 PM
Hey,
Have you modified the form layout to hide any field? This could happen because of missing field on the form that is being used in one of your client script.
Please see below the KB article that has something similar to this.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0856441
Regards,
Muhammad
Muhammad