Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Java script not working in 1 pdf, but same script is NOT working in other

Avatar

Former Community Member

Dear Experts,

I have a problem with java script.

I have created 2 PDFs with the same Form name and sub form names.

I have written a javascript and this script seems to be working in one (Demand2.pdf) and NOT working in the other (Sample.pdf).

The link for Demand2.pdf is
https://acrobat.com/#d=XIydWx1RIU4oNdTySHtHfg

and the link for sample.pdf is
https://acrobat.com/#d=sKPRs2dtDY57RSvMVtnh3w

Can you please guide me on this.

Many Thanks

BookFans

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

The second file (Sample.pdf) is saved as Static. The script is changing the visual appearance of the form (showing and hiding objects). This requires the file to be saved as a Dynamic PDF. This is available in the save-as dialogue under the file name.

Parallels Desktop1.png

Good luck,

Niall

View solution in original post

3 Replies

Avatar

Former Community Member

Sorry subject should be

Java script is working in 1 pdf, but same script is NOT working in other

Thanks

BookFans

Avatar

Correct answer by
Level 10

Hi,

The second file (Sample.pdf) is saved as Static. The script is changing the visual appearance of the form (showing and hiding objects). This requires the file to be saved as a Dynamic PDF. This is available in the save-as dialogue under the file name.

Parallels Desktop1.png

Good luck,

Niall

Avatar

Former Community Member

Hi Niall,

Spot on. It is working fine

Many Many Thanks.

BookFans