Getting an error "onSubmit script error: ReferenceError: func is not defined: .." while closing the task.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2019 05:43 AM
Hi All,
I am getting an error "onSubmit script error: ReferenceError: func is not defined: " while I am trying to close the task (refer snap)
What the function its pointing out, is not written by me.
What may be the reason ?
Thanks,
Virendra

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2019 06:40 AM
From the code being shown, it looks like it is code that was written for Change records. Is there someone else in your organization that was working on a script for change?
Feel free to turn on Debugging to see what the name of the script is that is running when you close a task that is generating that error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2019 08:04 AM
Hi Virendra,
If your UI action executes client code with an onClick function defined, it may be calling an onClick function from another UI action if the function names are the same. You can do a quick search for this on the UI action table to find out.
Hope this helps!
Thank you,
Nick