The CreatorCon Call for Content is officially open! Get started here.

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

Virendra K
Kilo Sage

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 ? 

find_real_file.png

Thanks,

Virendra

2 REPLIES 2

Waleska
Kilo Guru

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. 

Nick Peters
Tera Guru

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