Page 1 of 1

Javascript not working on NEW FORM

Posted: 24 Jan 2017
by rab
Hello,

we have a dynamic form with actions coded in Javascript fielt (hide fields and tabs, highlight fields). After a update from 3.0.8 to 3.1.2 the Javascript dosn't work on the NEW form.

I have saved the form with the new version again, but the form is not dynamic.

On the edit and display form all is OK. What can I do to solve the problem?

Thank you for any help.

Rainer

Re: Javascript not working on NEW FORM

Posted: 25 Jan 2017
by Dmitry Kozlov
Hi,

Open the browser console (F12) and check JS-errors.

Re: Javascript not working on NEW FORM

Posted: 25 Jan 2017
by rab
Thank you for your tip. I get a console error:

SCRIPT438: The object does not support the property or method "data"
plumsail.fd.core.js

A look inside the script goes to UpdateDroppedDocuments function. So I have take a look to my scripts. The first part is such a function, but I don't need it in the new form. Also I have all forms (new, edit, disp) make equal and hide some parts due Javascript.

So I have removed the UpdateDroppedDocuments funktion on the NEW form and it works now.

But where is the error in the NEW form?

Thx Rainer

Re: Javascript not working on NEW FORM

Posted: 26 Jan 2017
by Dmitry Kozlov
Hi,

Most likely, you just do not have the related docs in the new form.