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

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

My print button and image field buttons wont work for client... HELP!

Avatar

Level 1

Hello!

I have a static pdf form that a client would like to PRINT and be able to upload a different logo into an image field when needed.

Upon clicking these (button and field) nothing happens.

Here are the scripts for both:

PRINT BUTTON

form1.#subform[0].PrintButton1::click - (JavaScript, client)

xfa.host.print(1, "0", (xfa.host.numPages -1).toString(), 0, 0, 0, 0, 0);

IMAGE FIELD:

form1.#subform[0].ImageField2::click - (JavaScript, client)

The client and others will probably be using older versions of Adobe, perhaps 8 or even 7, I have no clue. Would this impact?

THANK YOU!

1 Reply

Avatar

Level 7

Have you tried saving the form as a Dynamic form rather than Static?

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now