Expand my Community achievements bar.

javascript doesn't work with Adobe Reader 9

Avatar

Former Community Member
I have a submit button. Its function is to close the form. The click event has this code:



var myDoc = event.target;

myDoc.closeDoc(true);



Using Adobe Reader 8, it works fine. If we use Adobe Reader 9, the form doesn't close.



I'm using Adobe LiceCycle Designer 8.05.2073.



Thanks.
3 Replies

Avatar

Former Community Member
Are you running inside of a browser or standalone? Can you hit Ctrl-J and see if there are any messages on the java console?

Avatar

Former Community Member
Our forms are inside a browser. I get this from the java console:



NotSupportedError: Not supported in this Acrobat configuration.

Doc.closeDoc:3:XFA:form1[0]:#subform[0]:btnSave[0]:click

Avatar

Former Community Member
You cannot close the doc inside of a browser as all that is left is an empty shell (unlike the Acrobat application where you still have an application to do something with).