Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

javascript doesn't work with Adobe Reader 9

Avatar

Not applicable
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

Level 10
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

Not applicable
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

Level 10
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).