davidgustafsson
Tera Expert

I got the solution.

The issue was that I added the row:

createAffectedCompany();

This made the script load every time the page was loaded. As you load a preview of the incident page from the I symbol it tried to load the script as well. From list you do not have access to g_form why this throw an error.

View solution in original post