Skip to main content
gamzes93533812
Known Participant
Feb 15, 2018 12:12 PM UTC
Question

AcroPDF form-> button OnFocus event for 2nd click

In an Acrobat PDF form, I can assign an OnFocusEvent to show some other field if a user pushes on a button in form.

I simply add it to button properties>action>on focus>run a js

the Javascript event used is as in following:

this.getField("point.2").display = (event.target.value=="Off") ? display.hidden : display.visible;

But, is it possible to assign an event for a second click for showing some other fields?

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

Bernd Alheit
Community Expert
Community Expert
Feb 15, 2018 3:22 PM UTC

You can remember the first click in a hidden form field.

Translate
gamzes93533812
Known Participant
Feb 15, 2018 4:17 PM UTC

Forgive my ignorance but how?

Translate
Bernd Alheit
Community Expert
Community Expert
Feb 15, 2018 4:42 PM UTC

At the first click change the value of the text field. At every click check the value of the text field.

Translate