Change Planned Start Date Error 'onChange script error: ReferenceError:'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 06:52 AM
Good Morning,
In my test instance I recently started receiving the error below when entering a planned start or end date on a change form. I have gone through my onChange client scripts, but am not sure which one is causing the error as none have been updated within the past two months and was not receiving this error as of last week.
I tried following the link on this post (although pretty outdated) and verified I do have the client and UI scripts listed. I also attempted to copy the ValidateStartEndDates UI Script and create a new UI Script titled validateStartDateBeforeEndDate but this did not resolve my issue. Does anyone know the cause of this error?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 07:20 AM
Hi @tiguin2798
What is the script that you wrote, can you please share your code.
Please appreciate the efforts of community contributors by marking the appropriate response as the correct answer and helpful. This may help other community users to follow the correct solution in the future.
********************************************************************************************************
Cheers,
Prashant Kumar
ServiceNow Technical Architect
Community Profile LinkedIn YouTube Medium TopMate
********************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2024 07:39 AM
Unfortunately, that is where I am very confused. I have not created any onChange client scripts for the change_request table and no client scripts have been updated since 5/16. This issue only started happening yesterday.
I am still new to the platform. Is there a way I can see what client script is triggering the error? That would help me to provide the code.